core: Fix double borrow in button post_init - fixes #1450 and #1190

This commit is contained in:
Nathan Adams 2020-11-03 23:21:18 +01:00 committed by Mike Welsh
parent d7b94316c6
commit 6c270d8c3a
1 changed files with 2 additions and 0 deletions

View File

@ -210,6 +210,8 @@ impl<'gc> TDisplayObject<'gc> for Button<'gc> {
); );
mc.object = Some(object.into()); mc.object = Some(object.into());
drop(mc);
if run_frame { if run_frame {
self.run_frame(context); self.run_frame(context);
} }