additional resource de-allocation in dispose, this might solve #2074

This commit is contained in:
codeanticode
2013-10-25 15:09:57 -04:00
parent b372046e44
commit acaa6f50bf
2 changed files with 8 additions and 0 deletions
@@ -270,6 +270,10 @@ public class Capture extends PImage implements PConstants {
pipeline.dispose();
pipeline = null;
parent.g.removeCache(this);
parent.unregisterMethod("dispose", this);
parent.unregisterMethod("post", this);
}
}
@@ -135,6 +135,10 @@ public class Movie extends PImage implements PConstants {
playbin.dispose();
playbin = null;
parent.g.removeCache(this);
parent.unregisterMethod("dispose", this);
parent.unregisterMethod("post", this);
}
}