Fix a memory leak in empty subject warning dialog in compose.c.
authorAndrej Kacian <ticho@claws-mail.org>
Fri, 28 Jul 2017 17:50:29 +0000 (19:50 +0200)
committerAndrej Kacian <ticho@claws-mail.org>
Fri, 28 Jul 2017 17:50:29 +0000 (19:50 +0200)
src/compose.c

index 023b36d..69c5a0f 100644 (file)
@@ -5169,6 +5169,7 @@ static gboolean compose_check_entries(Compose *compose, gboolean check_everythin
                                               GTK_STOCK_CANCEL, button_label, NULL, TRUE, NULL,
                                               ALERT_QUESTION, G_ALERTDEFAULT);
                        g_free(message);
+                       g_free(button_label);
                        if (aval & G_ALERTDISABLE) {
                                aval &= ~G_ALERTDISABLE;
                                prefs_common.warn_empty_subj = FALSE;