From fe65358e3df5f9ee0dfd7b0eb1b5ac72bf6709a8 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Wed, 28 Dec 2011 00:19:21 +0000 Subject: [PATCH] neutrino personalize: remove delete delete causes crashes while saving settings in personalize setup git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@2011 e54a6e83-5905-42d5-8d5c-058d10e6a962 Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/f98c83ee41b5b5871269edaab42beb9482ca6058 Author: Thilo Graf Date: 2011-12-28 (Wed, 28 Dec 2011) Origin message was: ------------------ *neutrino personalize: remove delete delete causes crashes while saving settings in personalize setup git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@2011 e54a6e83-5905-42d5-8d5c-058d10e6a962 ------------------ This commit was generated by Migit --- src/gui/widget/menue.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/gui/widget/menue.cpp b/src/gui/widget/menue.cpp index 9715ee5e2..11d9ad795 100644 --- a/src/gui/widget/menue.cpp +++ b/src/gui/widget/menue.cpp @@ -401,9 +401,12 @@ void CMenuWidget::resetWidget() if ((item != GenericMenuSeparator) && (item != GenericMenuSeparatorLine) && (item != GenericMenuBack) && - (item != GenericMenuCancel)) - delete item; + (item != GenericMenuCancel)){ + //delete item;//FIXME: possible crash here + item = NULL; + } } + items.clear(); page_start.clear(); selected=-1;