Icon-O-Matic: Fix memory leak

I found leak_analyser.sh and gave it a try. Indeed, it did find many
leaks, including this one.

Change-Id: I7d36274f3f7772aa459c4bf1d30392e7b8cfa171
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6467
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
This commit is contained in:
Zardshard 2023-05-23 10:29:31 -04:00 committed by waddlesplash
parent 57d035af1c
commit 943b5775f8

View File

@ -145,6 +145,7 @@ MainWindow::~MainWindow()
// stuff is properly detached
delete fDocument;
delete fCurrentColor;
delete fMessageAfterSave;
}