* bugfix for converting special characters from Internet Search Home Applet
authorstranger <dariusz.wiechecki@gmail.com>
Tue, 29 Jan 2008 07:53:07 +0000 (07:53 +0000)
committerstranger <dariusz.wiechecki@gmail.com>
Tue, 29 Jan 2008 07:53:07 +0000 (07:53 +0000)
git-svn-id: file:///svnroot/mdictionary/trunk@243 5bde0345-f819-0410-ac75-e5045f9217cc

src/gui/src/ws_gui_callbacks.c

index 864c0b7..e6ddc6a 100644 (file)
@@ -408,12 +408,12 @@ void ws_gui_search_home_handler(GError *error, GArray *word, gpointer user_data)
        /*get the word passed by dbus*/
        osso_data = &g_array_index (word, osso_rpc_t, 0); 
 
-       /*free memory used by last searched word*/
-       gchar* tmp = NULL;
-       tmp = g_strdup(osso_data->value.s + 11);
-
        /* check for special characters in text starting with % */      
        ws_gui_word_conversion( osso_data );
+
+       /* make a copy of passed string */
+       gchar* tmp = NULL;
+       tmp = g_strdup(osso_data->value.s + 11);
        
        g_object_set(G_OBJECT(data->ws_gui_hildon_find_toolbar),
                "prefix",