From: Jim Evins Date: Thu, 29 Apr 2010 23:53:01 +0000 (-0400) Subject: Minor Cleanup X-Git-Tag: glabels-2_3_0~45 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=8fb4c72166b2052b31bc9b5f02e63c6ae5886a82;p=glabels Minor Cleanup --- 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");