mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
systemtrayicon: fixed minor memory leak
This commit is contained in:
parent
0de6600c94
commit
d548b51e1d
|
@ -114,6 +114,8 @@ SystemTrayIcon::SystemTrayIcon()
|
|||
8, image->width(), image->height(),
|
||||
image->bytesPerLine(), callbackFreeImage, image);
|
||||
|
||||
delete image; // Not needed anymore.
|
||||
|
||||
statusNotifier = status_notifier_new_from_pixbuf("qtox",
|
||||
STATUS_NOTIFIER_CATEGORY_APPLICATION_STATUS, pixbuf);
|
||||
status_notifier_register(statusNotifier);
|
||||
|
|
Loading…
Reference in New Issue
Block a user