From 9675f6ed4147857b4c4298e1fab1a3db709b5562 Mon Sep 17 00:00:00 2001 From: TangoCash Date: Fri, 31 Aug 2018 20:44:05 +0200 Subject: [PATCH] fix possible segfault Signed-off-by: Thilo Graf --- src/gui/personalize.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gui/personalize.cpp b/src/gui/personalize.cpp index f4f754794..3aa9d98e7 100644 --- a/src/gui/personalize.cpp +++ b/src/gui/personalize.cpp @@ -986,7 +986,8 @@ void CPersonalizeGui::addPersonalizedItems() } } - delete fw; + if (fw) + delete fw; } else //handle and add separator as non personalized item and don't allow to add a separator as next but allow back button as next {