aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-04-28 08:07:25 -0500
committerTed Gould <ted@gould.cx>2010-04-28 08:07:25 -0500
commit4333b09aa519255952b651ac7819cb5e3a0226be (patch)
treeb212d50690461410ffb69081e094133d0a4a9a3a
parent2b49e0c0ab5d2c6563342d664d6470264fd4fcd3 (diff)
parent70e5dbeec4e69f9de4679893f4d5753830b3a1ff (diff)
downloadayatana-indicator-messages-4333b09aa519255952b651ac7819cb5e3a0226be.tar.gz
ayatana-indicator-messages-4333b09aa519255952b651ac7819cb5e3a0226be.tar.bz2
ayatana-indicator-messages-4333b09aa519255952b651ac7819cb5e3a0226be.zip
Patch from Kees to ensure the hashtable keeps its memory
-rw-r--r--src/messages-service.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/messages-service.c b/src/messages-service.c
index 54b4055..0783d91 100644
--- a/src/messages-service.c
+++ b/src/messages-service.c
@@ -315,7 +315,7 @@ desktop_file_from_keyfile (const gchar * definition_file)
}
/* Add a definition file into the black list and eclipse
- and launchers that have the same file. */
+ any launchers that have the same file. */
static gboolean
blacklist_add (gpointer udata)
{
@@ -359,7 +359,7 @@ blacklist_add_core (gchar * desktop, gchar * definition)
}
/* Actually blacklist this thing */
- g_hash_table_insert(blacklist, desktop, definition);
+ g_hash_table_insert(blacklist, g_strdup(desktop), g_strdup(definition));
g_debug("Adding Blacklist item '%s' for desktop '%s'", definition, desktop);
/* Go through and eclipse folks */