[PATCH] icon-theme: fix leak in insert_theme()



We allocate path with g_build_filename() but never free it.

---
diff --git a/gtk/gtkicontheme.c b/gtk/gtkicontheme.c
index 0520686..cd2d765 100644
--- a/gtk/gtkicontheme.c
+++ b/gtk/gtkicontheme.c
@@ -1113,6 +1113,7 @@ insert_theme (GtkIconTheme *icon_theme, const char *theme_name)
 	dir_mtime->mtime = 0;
 
       priv->dir_mtimes = g_list_prepend (priv->dir_mtimes, dir_mtime);
+      g_free (path);
     }
   priv->dir_mtimes = g_list_reverse (priv->dir_mtimes);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]