diff options
Diffstat (limited to 'src/plugins/fs/search.c')
-rw-r--r-- | src/plugins/fs/search.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/plugins/fs/search.c b/src/plugins/fs/search.c index ce3c5bcf..19cea88a 100644 --- a/src/plugins/fs/search.c +++ b/src/plugins/fs/search.c | |||
@@ -191,6 +191,7 @@ addEntryToSearchTree (SearchList * searchContext, | |||
191 | char *size_h; | 191 | char *size_h; |
192 | GdkPixbuf *pixbuf; | 192 | GdkPixbuf *pixbuf; |
193 | GdkPixbuf *rankbuf; | 193 | GdkPixbuf *rankbuf; |
194 | GdkPixbuf *statusLogo; | ||
194 | #ifdef HAVE_GIO | 195 | #ifdef HAVE_GIO |
195 | GdkPixbuf *icon = NULL; | 196 | GdkPixbuf *icon = NULL; |
196 | GIcon *gicon = NULL; | 197 | GIcon *gicon = NULL; |
@@ -202,6 +203,7 @@ addEntryToSearchTree (SearchList * searchContext, | |||
202 | state = GNUNET_URITRACK_get_state (ectx, cfg, info->uri); | 203 | state = GNUNET_URITRACK_get_state (ectx, cfg, info->uri); |
203 | rawMime = getMimeTypeFromMetaData (info->meta); | 204 | rawMime = getMimeTypeFromMetaData (info->meta); |
204 | desc = getDescriptionFromMetaData (info->meta); | 205 | desc = getDescriptionFromMetaData (info->meta); |
206 | statusLogo = getStatusLogo (state); | ||
205 | name = getFileNameFromMetaData (info->meta); | 207 | name = getFileNameFromMetaData (info->meta); |
206 | size = GNUNET_ECRS_uri_test_chk (info->uri) | 208 | size = GNUNET_ECRS_uri_test_chk (info->uri) |
207 | || GNUNET_ECRS_uri_test_loc (info->uri) ? | 209 | || GNUNET_ECRS_uri_test_loc (info->uri) ? |
@@ -251,7 +253,7 @@ addEntryToSearchTree (SearchList * searchContext, | |||
251 | SEARCH_INTERNAL,searchContext, | 253 | SEARCH_INTERNAL,searchContext, |
252 | SEARCH_INTERNAL_PARENT, downloadParent, | 254 | SEARCH_INTERNAL_PARENT, downloadParent, |
253 | SEARCH_STATUS, getStatusName (state), | 255 | SEARCH_STATUS, getStatusName (state), |
254 | SEARCH_STATUS_LOGO, getStatusLogo (state), | 256 | SEARCH_STATUS_LOGO, statusLogo, |
255 | SEARCH_APPLICABILITY_RANK, 1, SEARCH_RANK_SORT, | 257 | SEARCH_APPLICABILITY_RANK, 1, SEARCH_RANK_SORT, |
256 | (long long) 1, SEARCH_RANK_PIXBUF, rankbuf, | 258 | (long long) 1, SEARCH_RANK_PIXBUF, rankbuf, |
257 | #ifdef HAVE_GIO | 259 | #ifdef HAVE_GIO |
@@ -261,6 +263,8 @@ addEntryToSearchTree (SearchList * searchContext, | |||
261 | g_object_unref (rankbuf); | 263 | g_object_unref (rankbuf); |
262 | if (pixbuf != NULL) | 264 | if (pixbuf != NULL) |
263 | g_object_unref (pixbuf); | 265 | g_object_unref (pixbuf); |
266 | if (statusLogo != NULL) | ||
267 | g_object_unref (statusLogo); | ||
264 | #ifdef HAVE_GIO | 268 | #ifdef HAVE_GIO |
265 | if (gicon != NULL) | 269 | if (gicon != NULL) |
266 | g_object_unref (gicon); | 270 | g_object_unref (gicon); |