diff options
author | Ken VanDine <ken.vandine@canonical.com> | 2012-02-10 10:33:11 -0500 |
---|---|---|
committer | Ken VanDine <ken.vandine@canonical.com> | 2012-02-10 10:33:11 -0500 |
commit | 1fc19f1fb5eeaf7b3a600f4783e66ff75e092d56 (patch) | |
tree | 8d70f1e282c2677c71b52395a90f219497325169 /src/messages-service.c | |
parent | 4aacdd9668a570edcd9a8654865f147dcab396fe (diff) | |
parent | 081237a24c34a9462c47a2d62720ba14f18cad0e (diff) | |
download | ayatana-indicator-messages-1fc19f1fb5eeaf7b3a600f4783e66ff75e092d56.tar.gz ayatana-indicator-messages-1fc19f1fb5eeaf7b3a600f4783e66ff75e092d56.tar.bz2 ayatana-indicator-messages-1fc19f1fb5eeaf7b3a600f4783e66ff75e092d56.zip |
* New upstream release.
* Adding code coverage targets
* Match libindicate 0.6.90
* Updating for Dbusmenu 0.5.90
* Plug leak in launcher_menu_item_new
* Fix memory leak: Free path string.
* Compare server and path for multi-server clients
* Using the new GTK3 box API to avoid deprecations
* Adding a name hint
* debian/control: Requiring libindicate 0.6.90 and dbusmenu 0.5.90
Diffstat (limited to 'src/messages-service.c')
-rw-r--r-- | src/messages-service.c | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/src/messages-service.c b/src/messages-service.c index e8fe576..a21435c 100644 --- a/src/messages-service.c +++ b/src/messages-service.c @@ -104,10 +104,15 @@ serverList_equal (gconstpointer a, gconstpointer b) pa = (serverList_t *)a; pb = (serverList_t *)b; - const gchar * pas = INDICATE_LISTENER_SERVER_DBUS_NAME(pa->server); - const gchar * pbs = INDICATE_LISTENER_SERVER_DBUS_NAME(pb->server); - - return g_strcmp0(pas, pbs); + const gchar * pan = INDICATE_LISTENER_SERVER_DBUS_NAME(pa->server); + const gchar * pbn = INDICATE_LISTENER_SERVER_DBUS_NAME(pb->server); + const gchar * pap = indicate_listener_server_get_dbuspath(pa->server); + const gchar * pbp = indicate_listener_server_get_dbuspath(pb->server); + + if (g_strcmp0(pan, pbn) == 0) + return g_strcmp0(pap, pbp); + else + return 1; } static gint @@ -1296,6 +1301,7 @@ build_launcher (gpointer data) g_file_get_contents(path, &desktop, NULL, NULL); if (desktop == NULL) { + g_free(path); return FALSE; } @@ -1305,6 +1311,7 @@ build_launcher (gpointer data) build_launcher_core(trimdesktop); g_free(trimdesktop); + g_free(path); return FALSE; } @@ -1318,6 +1325,7 @@ build_launcher_keyfile (gpointer data) build_launcher_core(desktop); g_free(desktop); } + g_free(path); return FALSE; } |