summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2009-12-25 03:42:47 +0100
committerJon Bergli Heier <snakebite@jvnv.net>2009-12-25 03:42:47 +0100
commitbd9cfe78fce7806b8d400e4a78aebfe8800126b7 (patch)
tree258f78cd8d21845ee49298d500322a8a624a2a7c
parentfb6417dcf2df2e5c09fa3a36640d10e563d0ae5b (diff)
Use g_error_free in add_dir_recursive (fixes crash when adding).
-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))) {