Commit a9234f76 authored by Marco Trevisan's avatar Marco Trevisan 🎺 Committed by Marco Trevisan

background: Use Garbage Collector to dispose background

The same Meta.Background could be used by multiple instances of background
actors, and so should not be disposed when the actor using it is destroyed.

Instead of calling `run_dispose` directly on it, just nullify the reference
on destroy method, leaving the job of doing the proper disposition to the
gabage collector that keeps the proper reference count on the Meta.Background.

Fixes #501

parent 1e5a8b0c
......@@ -265,6 +265,8 @@ var Background = class Background {
destroy() {
this.background = null;
......@@ -699,7 +701,6 @@ var BackgroundManager = class BackgroundManager {
transition: 'easeOutQuad',
onComplete() {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment