[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r7131 - gnunet-gtk/src/plugins/fs
From: |
gnunet |
Subject: |
[GNUnet-SVN] r7131 - gnunet-gtk/src/plugins/fs |
Date: |
Wed, 11 Jun 2008 03:22:36 -0600 (MDT) |
Author: moon
Date: 2008-06-11 03:22:36 -0600 (Wed, 11 Jun 2008)
New Revision: 7131
Modified:
gnunet-gtk/src/plugins/fs/search.c
gnunet-gtk/src/plugins/fs/status.c
gnunet-gtk/src/plugins/fs/status.h
Log:
fix leak
Modified: gnunet-gtk/src/plugins/fs/search.c
===================================================================
--- gnunet-gtk/src/plugins/fs/search.c 2008-06-11 03:22:18 UTC (rev 7130)
+++ gnunet-gtk/src/plugins/fs/search.c 2008-06-11 09:22:36 UTC (rev 7131)
@@ -191,6 +191,7 @@
char *size_h;
GdkPixbuf *pixbuf;
GdkPixbuf *rankbuf;
+ GdkPixbuf *statusLogo;
#ifdef HAVE_GIO
GdkPixbuf *icon = NULL;
GIcon *gicon = NULL;
@@ -202,6 +203,7 @@
state = GNUNET_URITRACK_get_state (ectx, cfg, info->uri);
rawMime = getMimeTypeFromMetaData (info->meta);
desc = getDescriptionFromMetaData (info->meta);
+ statusLogo = getStatusLogo (state);
name = getFileNameFromMetaData (info->meta);
size = GNUNET_ECRS_uri_test_chk (info->uri)
|| GNUNET_ECRS_uri_test_loc (info->uri) ?
@@ -251,7 +253,7 @@
SEARCH_INTERNAL,searchContext,
SEARCH_INTERNAL_PARENT, downloadParent,
SEARCH_STATUS, getStatusName (state),
- SEARCH_STATUS_LOGO, getStatusLogo (state),
+ SEARCH_STATUS_LOGO, statusLogo,
SEARCH_APPLICABILITY_RANK, 1, SEARCH_RANK_SORT,
(long long) 1, SEARCH_RANK_PIXBUF, rankbuf,
#ifdef HAVE_GIO
@@ -261,6 +263,8 @@
g_object_unref (rankbuf);
if (pixbuf != NULL)
g_object_unref (pixbuf);
+ if (statusLogo != NULL)
+ g_object_unref (statusLogo);
#ifdef HAVE_GIO
if (gicon != NULL)
g_object_unref (gicon);
Modified: gnunet-gtk/src/plugins/fs/status.c
===================================================================
--- gnunet-gtk/src/plugins/fs/status.c 2008-06-11 03:22:18 UTC (rev 7130)
+++ gnunet-gtk/src/plugins/fs/status.c 2008-06-11 09:22:36 UTC (rev 7131)
@@ -75,7 +75,7 @@
return "";
}
-const GdkPixbuf *
+GdkPixbuf *
getStatusLogo (enum GNUNET_URITRACK_STATE state)
{
if (state & (GNUNET_URITRACK_DIRECTORY_ADDED))
Modified: gnunet-gtk/src/plugins/fs/status.h
===================================================================
--- gnunet-gtk/src/plugins/fs/status.h 2008-06-11 03:22:18 UTC (rev 7130)
+++ gnunet-gtk/src/plugins/fs/status.h 2008-06-11 09:22:36 UTC (rev 7131)
@@ -35,6 +35,6 @@
const char *getStatusName (enum GNUNET_URITRACK_STATE state);
-const GdkPixbuf *getStatusLogo (enum GNUNET_URITRACK_STATE state);
+GdkPixbuf *getStatusLogo (enum GNUNET_URITRACK_STATE state);
#endif
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r7131 - gnunet-gtk/src/plugins/fs,
gnunet <=