From bd9cfe78fce7806b8d400e4a78aebfe8800126b7 Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Fri, 25 Dec 2009 03:42:47 +0100 Subject: Use g_error_free in add_dir_recursive (fixes crash when adding). --- wallpapers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wallpapers.c b/wallpapers.c index 6d7982a..e39ef21 100644 --- a/wallpapers.c +++ b/wallpapers.c @@ -94,7 +94,7 @@ void add_dir_recursive(const gchar *path, sqlite_uint64 parent, GtkStatusbar *st pixbuf = gdk_pixbuf_new_from_file(filepath, &error); if(!pixbuf) { g_warning("%s", error->message); - g_free(error); + g_error_free(error); continue; } if(db_add_wallpaper(filepath, dirid, st.st_size, gdk_pixbuf_get_width(pixbuf), gdk_pixbuf_get_height(pixbuf))) { -- cgit v1.2.3