aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-02-18 08:44:13 -0600
committerTed Gould <ted@gould.cx>2010-02-18 08:44:13 -0600
commitaa159e9d19cdb95a6334f429fd4b022f2c0144cb (patch)
tree7df43e86957b4fddb904db427999ca5e3b6f660e /src
parentabedb35f468b736aaa4d6f53b8270adb3109e107 (diff)
downloadayatana-indicator-messages-aa159e9d19cdb95a6334f429fd4b022f2c0144cb.tar.gz
ayatana-indicator-messages-aa159e9d19cdb95a6334f429fd4b022f2c0144cb.tar.bz2
ayatana-indicator-messages-aa159e9d19cdb95a6334f429fd4b022f2c0144cb.zip
Use the string allocate by g_key_file instead of creating a new one
Diffstat (limited to 'src')
-rw-r--r--src/messages-service.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/messages-service.c b/src/messages-service.c
index 585589a..cdfdb34 100644
--- a/src/messages-service.c
+++ b/src/messages-service.c
@@ -304,13 +304,8 @@ desktop_file_from_keyfile (const gchar * definition_file)
}
gchar * desktopfile = g_key_file_get_string(keyfile, DESKTOP_FILE_GROUP, DESKTOP_FILE_KEY_DESKTOP, &error);
- gchar * desktop = NULL;
- if (desktopfile != NULL) {
- desktop = g_strdup(desktopfile);
- }
-
g_key_file_free(keyfile);
- return desktop;
+ return desktopfile;
}
/* Add a definition file into the black list and eclipse