summaryrefslogtreecommitdiff
path: root/wallpapers.c
diff options
context:
space:
mode:
Diffstat (limited to 'wallpapers.c')
-rw-r--r--wallpapers.c1
1 files changed, 1 insertions, 0 deletions
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))) {