diff options
author | Christian Grothoff <christian@grothoff.org> | 2008-06-07 07:05:43 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2008-06-07 07:05:43 +0000 |
commit | 75924f582743c951c09c48b1122ca4db01492207 (patch) | |
tree | cf0d88308d75b4e5643a96d1d5d2b6d7479a4f59 | |
parent | 77647da815033ab062dc83b4af5cf5c386a675a2 (diff) | |
download | gnunet-gtk-75924f582743c951c09c48b1122ca4db01492207.tar.gz gnunet-gtk-75924f582743c951c09c48b1122ca4db01492207.zip |
leak
-rw-r--r-- | src/plugins/fs/search.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/plugins/fs/search.c b/src/plugins/fs/search.c index 5ffcec2f..b6fc58b2 100644 --- a/src/plugins/fs/search.c +++ b/src/plugins/fs/search.c | |||
@@ -254,7 +254,7 @@ addEntryToSearchTree (SearchList * searchContext, | |||
254 | } | 254 | } |
255 | } | 255 | } |
256 | #else | 256 | #else |
257 | mime = rawMime; | 257 | mime = GNUNET_strdup(rawMime); |
258 | #endif | 258 | #endif |
259 | 259 | ||
260 | gtk_tree_store_set (searchContext->tree, iter, | 260 | gtk_tree_store_set (searchContext->tree, iter, |
@@ -285,6 +285,7 @@ addEntryToSearchTree (SearchList * searchContext, | |||
285 | GNUNET_free (name); | 285 | GNUNET_free (name); |
286 | GNUNET_free (desc); | 286 | GNUNET_free (desc); |
287 | GNUNET_free (rawMime); | 287 | GNUNET_free (rawMime); |
288 | GNUNET_free (mime); | ||
288 | } | 289 | } |
289 | 290 | ||
290 | /** | 291 | /** |
@@ -714,7 +715,8 @@ fs_search_started (struct GNUNET_FSUI_SearchList * fsui_list, | |||
714 | g_signal_connect_swapped (list->treeview, | 715 | g_signal_connect_swapped (list->treeview, |
715 | "button-press-event", | 716 | "button-press-event", |
716 | G_CALLBACK (search_click_handler), list); | 717 | G_CALLBACK (search_click_handler), list); |
717 | list->tree = gtk_tree_store_new (SEARCH_NUM, G_TYPE_STRING, /* name */ | 718 | list->tree = gtk_tree_store_new (SEARCH_NUM, |
719 | G_TYPE_STRING, /* name */ | ||
718 | #ifdef HAVE_GIO | 720 | #ifdef HAVE_GIO |
719 | GDK_TYPE_PIXBUF, /* icon */ | 721 | GDK_TYPE_PIXBUF, /* icon */ |
720 | #endif | 722 | #endif |