Skip to content

Commit 544b174

Browse files
authored
Add dispose method to AnimEvent class
Implement dispose method to clean up resources.
1 parent 1f06ea3 commit 544b174

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

jme3-core/src/main/java/com/jme3/cinematic/events/AnimEvent.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,13 @@ public void initEvent(Application app, Cinematic cinematic) {
181181
}
182182
}
183183
}
184+
185+
@Override
186+
public void dispose() {
187+
super.dispose();
188+
cinematic = null;
189+
composer = null;
190+
}
184191

185192
/**
186193
* Callback when the event is paused.

0 commit comments

Comments
 (0)