core: Fix issue where unloaded buttons can still trigger mouse rollout events (close #1603)

This commit is contained in:
MrCheeze 2020-11-21 00:42:01 -05:00 committed by Mike Welsh
parent c60dd208ea
commit 5ea3814097
1 changed files with 1 additions and 0 deletions

View File

@ -438,6 +438,7 @@ impl<'gc> TDisplayObject<'gc> for Button<'gc> {
let tracker = context.focus_tracker; let tracker = context.focus_tracker;
tracker.set(None, context); tracker.set(None, context);
} }
self.set_removed(context.gc_context, true);
} }
} }