From 8fb4c72166b2052b31bc9b5f02e63c6ae5886a82 Mon Sep 17 00:00:00 2001 From: Jim Evins Date: Thu, 29 Apr 2010 19:53:01 -0400 Subject: [PATCH] Minor Cleanup --- libglabels/db.c | 2 +- src/new-label-dialog.c | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/libglabels/db.c b/libglabels/db.c index ba01850d..7f7b9e36 100644 --- a/libglabels/db.c +++ b/libglabels/db.c @@ -1534,7 +1534,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_unlink (abs_filename); + g_free (abs_filename); g_free (dir); g_free (filename); diff --git a/src/new-label-dialog.c b/src/new-label-dialog.c index fb9894c5..aa0f04b4 100644 --- a/src/new-label-dialog.c +++ b/src/new-label-dialog.c @@ -110,8 +110,6 @@ static gint forward_page_function (gint curren static void combo_changed_cb (glNewLabelDialog *this); static void rotate_toggled_cb (glNewLabelDialog *this); -static gchar *get_default_name (void); - static void set_info (glNewLabelDialog *this, const gchar *name); @@ -154,7 +152,6 @@ gl_new_label_dialog_class_init (glNewLabelDialogClass *class) static void gl_new_label_dialog_init (glNewLabelDialog *this) { - GtkWidget *vbox; gchar *logo_filename; GdkPixbuf *logo; GtkBuilder *builder; @@ -164,7 +161,6 @@ gl_new_label_dialog_init (glNewLabelDialog *this) "confirm_page_vbox", NULL }; GError *error = NULL; - GtkWidget *new_label_dialog_hbox; gl_debug (DEBUG_FILE, "START"); -- 2.39.5