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



hi list,

On 12-12-02 05:59 PM, Alex Chiang wrote:
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);

We're discussing this issue offline, but it looks like this patch is not the right answer.



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