summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--wallpapers.c2
1 files changed, 1 insertions, 1 deletions
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))) {