From f8f7729e7742169d7e7c4da13b5d295ed84a98e8 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Fri, 4 Dec 2009 09:09:03 +0000 Subject: [PATCH] - Force libnotify GObject cleanup --- src/GUI.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/GUI.cpp b/src/GUI.cpp index c7b703333..a0ac15a8f 100644 --- a/src/GUI.cpp +++ b/src/GUI.cpp @@ -812,11 +812,13 @@ void GUI::showNotificationBaloon(QString title, QString msg) const { if (notify_init ("summary-body")) { NotifyNotification* notification; notification = notify_notification_new (title.toLocal8Bit().data(), msg.toLocal8Bit().data(), "qbittorrent", 0); - GError* error = 0; - gboolean success = notify_notification_show (notification, &error); - notify_uninit (); - if(success) + gboolean success = notify_notification_show (notification, NULL); + if(success) { + g_object_unref(G_OBJECT(notification)); + notify_uninit (); return; + } + notify_uninit (); } #endif if(systrayIcon)