summaryrefslogtreecommitdiffstats
path: root/source/xfce/garcon/0001-Fix-use-after-free-crash-Bug-15679.patch
diff options
context:
space:
mode:
Diffstat (limited to 'source/xfce/garcon/0001-Fix-use-after-free-crash-Bug-15679.patch')
-rw-r--r--source/xfce/garcon/0001-Fix-use-after-free-crash-Bug-15679.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/source/xfce/garcon/0001-Fix-use-after-free-crash-Bug-15679.patch b/source/xfce/garcon/0001-Fix-use-after-free-crash-Bug-15679.patch
new file mode 100644
index 000000000..92ba106b3
--- /dev/null
+++ b/source/xfce/garcon/0001-Fix-use-after-free-crash-Bug-15679.patch
@@ -0,0 +1,25 @@
+From 6f452937366bb1599fb0ae986958786d52946f15 Mon Sep 17 00:00:00 2001
+From: Andre Miranda <andreldm@xfce.org>
+Date: Sat, 6 Jul 2019 13:42:20 -0300
+Subject: [PATCH] Fix use after free crash (Bug #15679)
+
+---
+ garcon/garcon-menu-item.c | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/garcon/garcon-menu-item.c b/garcon/garcon-menu-item.c
+index 35f6bed..5f23467 100644
+--- a/garcon/garcon-menu-item.c
++++ b/garcon/garcon-menu-item.c
+@@ -1154,6 +1154,8 @@ garcon_menu_item_reload_from_file (GarconMenuItem *item,
+
+ /* Update application actions */
+ _garcon_g_list_free_full (item->priv->actions, garcon_menu_item_action_unref);
++ item->priv->actions = NULL;
++
+ str_list = xfce_rc_read_list_entry (rc, G_KEY_FILE_DESKTOP_KEY_ACTIONS, ";");
+ if (G_LIKELY (str_list != NULL))
+ {
+--
+2.22.0
+