summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGaël Bonithon <gael@xfce.org>2022-03-16 12:10:41 +0100
committerGaël Bonithon <gael@xfce.org>2022-03-16 12:11:31 +0100
commit0c1e5a839d8dd267d999a1423a11c9bfc435c625 (patch)
tree396096dcc537702e25774f1e1c315a9f50b33e44
parent67999b8037d7526a3087279914b900fddb982c96 (diff)
downloadlibxfce4ui-master.tar.gz
XfceShortcutDialog: Fix a memory leakHEADmaster
-rw-r--r--libxfce4kbd-private/xfce-shortcut-dialog.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libxfce4kbd-private/xfce-shortcut-dialog.c b/libxfce4kbd-private/xfce-shortcut-dialog.c
index 7698d62..3fdacec 100644
--- a/libxfce4kbd-private/xfce-shortcut-dialog.c
+++ b/libxfce4kbd-private/xfce-shortcut-dialog.c
@@ -207,9 +207,9 @@ xfce_shortcut_dialog_create_contents (XfceShortcutDialog *dialog,
const gchar *action_type;
const gchar *title;
const gchar *icon_name;
- const gchar *explanation_label;
const gchar *text;
const gchar *format;
+ gchar *explanation_label;
gchar *markup;
if (g_utf8_collate (provider, "xfwm4") == 0)
@@ -278,6 +278,7 @@ xfce_shortcut_dialog_create_contents (XfceShortcutDialog *dialog,
gtk_label_set_line_wrap (GTK_LABEL (label), TRUE);
gtk_container_add (GTK_CONTAINER (content_box), label);
gtk_widget_show (label);
+ g_free (explanation_label);
/* Box and labels to display the shortcut currently being grabbed.
* It will be updated to key-press events. */