1
0
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:
Dmytro Shynkevych 2015-09-27 23:19:21 -04:00
parent 0de6600c94
commit d548b51e1d

View File

@ -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);