From f4299251d52f8a2411fa2fc81e447b45260dec48 Mon Sep 17 00:00:00 2001 From: TangoCash Date: Sat, 1 Sep 2018 14:34:24 +0200 Subject: [PATCH] fix possible segfault Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/f2c20866af219e35ed5cd48592158f35ed2d42c9 Author: TangoCash Date: 2018-09-01 (Sat, 01 Sep 2018) --- 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 4bc7b5836..10cef8eff 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 {