diff --git a/core/src/avm1/object/bitmap_data.rs b/core/src/avm1/object/bitmap_data.rs index 55943414a..ef14ed616 100644 --- a/core/src/avm1/object/bitmap_data.rs +++ b/core/src/avm1/object/bitmap_data.rs @@ -71,7 +71,7 @@ impl<'gc> BitmapDataObject<'gc> { } pub fn dispose(&self, context: &mut UpdateContext<'_, 'gc>) { - self.bitmap_data().write(context.gc_context).dispose(); + self.bitmap_data_wrapper().dispose(context.gc_context); } }