mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
additional resource de-allocation in dispose, this might solve #2074
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user