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
This commit is contained in:
@@ -130,7 +130,6 @@ GUIButton::~GUIButton()
|
||||
if (mButtonImg) delete mButtonImg;
|
||||
if (mButtonLabel) delete mButtonLabel;
|
||||
if (mAction) delete mAction;
|
||||
if (mButtonIcon) delete mButtonIcon;
|
||||
}
|
||||
|
||||
int GUIButton::Render(void)
|
||||
|
||||
Reference in New Issue
Block a user