Attachwarner: fix leaked string
authorRicardo Mones <ricardo@mones.org>
Sun, 8 Jan 2017 23:37:04 +0000 (00:37 +0100)
committerRicardo Mones <ricardo@mones.org>
Sun, 8 Jan 2017 23:37:04 +0000 (00:37 +0100)
src/plugins/attachwarner/attachwarner.c

index b1ef1b09e70194c07daaaede181af49c8096c34d..4dd8f96eccf39e1a8809c1a1fc0b85f2e819bf81 100644 (file)
@@ -224,6 +224,7 @@ static gboolean attwarn_before_send_hook(gpointer source, gpointer data)
                                  GTK_STOCK_CANCEL, button_label, NULL);
                g_free(message);
                g_free(bold_text);
+               g_free(button_label);
                if (aval != G_ALERTALTERNATE)
                        return TRUE;
        }