Skip to content

Commit 7395672

Browse files
committed
properly dispose of silhouettes
1 parent 0d7b880 commit 7395672

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Skin.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ class Skin extends EventEmitter {
6363
*/
6464
dispose () {
6565
this._id = RenderConstants.ID_NONE;
66-
if (this._newSilhouette) this._newSilhouette.free();
66+
this._renderer.softwareRenderer.remove_silhouette(this.id);
6767
}
6868

6969
/**

0 commit comments

Comments
 (0)