]> git.sur5r.net Git - glabels/commitdiff
Fixed stupid typo. upstream/gtk3
authorJim Evins <evins@snaught.com>
Mon, 15 Nov 2010 03:49:58 +0000 (22:49 -0500)
committerJim Evins <evins@snaught.com>
Mon, 15 Nov 2010 03:49:58 +0000 (22:49 -0500)
Must of been temporary insanity.  I had replaced a g_unlink with a g_free
a while back.  Hanging my head in shame.

libglabels/db.c

index 4f76910a6526f02a60981ff96d33686ac0148c1c..9880eb02ce14fbb256708c0bbf04379a8381d81b 100644 (file)
@@ -1575,7 +1575,7 @@ lgl_db_delete_template_by_name (const gchar *name)
                filename = g_strdup_printf ("%s_%s.template", template->brand, template->part);
                abs_filename = g_build_filename (dir, filename, NULL);
 
-                g_free (abs_filename);
+                g_unlink (abs_filename);
 
                g_free (dir);
                g_free (filename);