From a539fdf38688cbed984d9db1f08deaaf34eaf9e0 Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Wed, 23 Dec 2009 03:08:08 +0100 Subject: Remember to free GError. --- wallpapers.c | 1 + 1 file changed, 1 insertion(+) (limited to 'wallpapers.c') diff --git a/wallpapers.c b/wallpapers.c index 5e09742..6d7982a 100644 --- a/wallpapers.c +++ b/wallpapers.c @@ -94,6 +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); continue; } if(db_add_wallpaper(filepath, dirid, st.st_size, gdk_pixbuf_get_width(pixbuf), gdk_pixbuf_get_height(pixbuf))) { -- cgit v1.2.3