Skip to content

Commit

Permalink
Graphics: When removing a Drawable from a DrawableManager, dispose it
Browse files Browse the repository at this point in the history
  • Loading branch information
Beyley committed Feb 26, 2023
1 parent 30637a4 commit 0c73c98
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ public void Remove(Drawable? drawable) {

this.DrawablesLock.EnterWriteLock();
this._drawables.Remove(drawable);
drawable.Dispose();
this.DrawablesLock.ExitWriteLock();
}

Expand Down

0 comments on commit 0c73c98

Please sign in to comment.