From 1b6199f8edd7fc69663b579c16a992d6486950af Mon Sep 17 00:00:00 2001 From: Ethan Yonker Date: Tue, 10 Feb 2015 13:19:02 -0600 Subject: Remove deletes for images from scroll list GUI Elements Resources are deleted by ~PageSet and do not need to be deleted by the the scrollable list elements. This fixes a crash when reloading the theme. Also remove some deletes for items that should not be deleted in button and input GUI elements. Change-Id: Ie1c1b85c81c10f648d085746a5fdba6220468a5f --- gui/scrolllist.cpp | 3 --- 1 file changed, 3 deletions(-) (limited to 'gui/scrolllist.cpp') diff --git a/gui/scrolllist.cpp b/gui/scrolllist.cpp index 02656c79d..3010d3a71 100644 --- a/gui/scrolllist.cpp +++ b/gui/scrolllist.cpp @@ -259,9 +259,6 @@ GUIScrollList::GUIScrollList(xml_node<>* node) : GUIObject(node) GUIScrollList::~GUIScrollList() { - delete mHeaderIcon; - delete mBackground; - delete mFont; } void GUIScrollList::SetMaxIconSize(int w, int h) -- cgit v1.2.3