Author: colossus
Date: 2007-09-28 12:23:36 +0000 (Fri, 28 Sep 2007)
New Revision: 26116

Modified:
   xarchiver/trunk/src/mime.c
   xarchiver/trunk/src/mime.h
   xarchiver/trunk/src/window.c
Log:
The g_slist icon_cache is now freed.
Renamed xa_free_pixbuf_cache to xa_free_icon_cache.


Modified: xarchiver/trunk/src/mime.c
===================================================================
--- xarchiver/trunk/src/mime.c  2007-09-28 11:46:45 UTC (rev 26115)
+++ xarchiver/trunk/src/mime.c  2007-09-28 12:23:36 UTC (rev 26116)
@@ -107,7 +107,7 @@
        return strcmp(a->icon_name, b->icon_name);
 }
 
-void xa_free_pixbuf_cache()
+void xa_free_icon_cache()
 {
        GSList *x = icon_cache;
 
@@ -119,4 +119,5 @@
                g_free(tie);
                x = x->next;
        }
+       g_slist_free(icon_cache);
 }

Modified: xarchiver/trunk/src/mime.h
===================================================================
--- xarchiver/trunk/src/mime.h  2007-09-28 11:46:45 UTC (rev 26115)
+++ xarchiver/trunk/src/mime.h  2007-09-28 12:23:36 UTC (rev 26116)
@@ -37,5 +37,5 @@
 const char *xa_get_stock_mime_icon(char *filename);
 GdkPixbuf *xa_get_pixbuf_icon_from_cache(gchar *filename);
 gint xa_icon_name_compare_func(pixbuf_cache *a, pixbuf_cache *b);
-void xa_free_pixbuf_cache();
+void xa_free_icon_cache();
 #endif

Modified: xarchiver/trunk/src/window.c
===================================================================
--- xarchiver/trunk/src/window.c        2007-09-28 11:46:45 UTC (rev 26115)
+++ xarchiver/trunk/src/window.c        2007-09-28 12:23:36 UTC (rev 26116)
@@ -36,7 +36,7 @@
 extern gboolean unrar;
 extern Prefs_dialog_data *prefs_window;
 extern gchar *config_file;
-extern void xa_free_pixbuf_cache();
+extern void xa_free_icon_cache();
 
 gchar *current_open_directory = NULL;
 GtkFileFilter *open_file_filter = NULL;
@@ -509,7 +509,7 @@
 
        xa_prefs_save_options (prefs_window,config_file);
        g_free (config_file);
-       xa_free_pixbuf_cache();
+       xa_free_icon_cache();
 
 #ifdef HAVE_SOCKET
        socket_finalize();

_______________________________________________
Xfce4-commits mailing list
[email protected]
http://foo-projects.org/mailman/listinfo/xfce4-commits

Reply via email to