Fixed crash of control panel applet if no gconf keys are set.
authorRoman Moravcik <roman.moravcik@gmail.com>
Wed, 13 Oct 2010 15:01:05 +0000 (17:01 +0200)
committerRoman Moravcik <roman.moravcik@gmail.com>
Wed, 13 Oct 2010 15:01:05 +0000 (17:01 +0200)
src/cl-cpapplet.c

index 6fc9c44..a0fbb13 100644 (file)
@@ -365,8 +365,8 @@ load_configuration (CLLauncherAppletData *data)
        /* read aplication list from gconf */
        application_list = gconf_get_string_list (data->gconf_client, "application_list");
        if (application_list == NULL) {
-               application_list = g_slist_append (application_list, CAMERA_APPLICATION_DESKTOP_FILE);
-               application_list = g_slist_append (application_list, FLASHLIGHT_APPLET_DESKTOP_FILE);
+               application_list = g_slist_append (application_list, g_strdup (CAMERA_APPLICATION_DESKTOP_FILE));
+               application_list = g_slist_append (application_list, g_strdup (FLASHLIGHT_APPLET_DESKTOP_FILE));
        }
 
        for (entry = application_list; entry; entry = entry->next) {