diff options
author | Lars Uebernickel <lars.uebernickel@canonical.com> | 2012-04-04 16:48:53 +0200 |
---|---|---|
committer | Lars Uebernickel <lars.uebernickel@canonical.com> | 2012-04-04 16:48:53 +0200 |
commit | f2aefd61b55b2784cc8a2a24026e64cef84f0e4d (patch) | |
tree | 99c101a6f887b81b6a92fca9dbd7c05ebc114c12 /src | |
parent | 564b5157b51c99c201597b06fe6c9f02e62b94eb (diff) | |
download | ayatana-indicator-messages-f2aefd61b55b2784cc8a2a24026e64cef84f0e4d.tar.gz ayatana-indicator-messages-f2aefd61b55b2784cc8a2a24026e64cef84f0e4d.tar.bz2 ayatana-indicator-messages-f2aefd61b55b2784cc8a2a24026e64cef84f0e4d.zip |
messages-service.c: fix leak
Diffstat (limited to 'src')
-rw-r--r-- | src/messages-service.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/messages-service.c b/src/messages-service.c index 26eaf78..981c286 100644 --- a/src/messages-service.c +++ b/src/messages-service.c @@ -356,9 +356,14 @@ blacklist_add (gpointer udata) gchar * contents = NULL; if (symlink_target) + { blacklist_add_core (symlink_target, definition_file); + g_free (symlink_target); + } else if (g_str_has_suffix (definition_file, ".desktop")) + { blacklist_add_core(definition_file, definition_file); + } else if (g_file_get_contents (definition_file, &contents, NULL, NULL)) { gchar *trimmed = pango_trim_string (contents); |