mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 08:21:12 +02:00
gui/themes.cpp fix memleaks when using CMenuForwarder
This commit is contained in:
@@ -154,8 +154,8 @@ int CThemes::Show()
|
|||||||
|
|
||||||
readThemes(themes);
|
readThemes(themes);
|
||||||
|
|
||||||
CStringInputSMS *nameInput = new CStringInputSMS(LOCALE_COLORTHEMEMENU_NAME, &file_name, 30, NONEXISTANT_LOCALE, NONEXISTANT_LOCALE, "abcdefghijklmnopqrstuvwxyz0123456789- ");
|
CStringInputSMS nameInput(LOCALE_COLORTHEMEMENU_NAME, &file_name, 30, NONEXISTANT_LOCALE, NONEXISTANT_LOCALE, "abcdefghijklmnopqrstuvwxyz0123456789- ");
|
||||||
CMenuForwarder *m1 = new CMenuForwarder(LOCALE_COLORTHEMEMENU_SAVE, true , NULL, nameInput, NULL, CRCInput::RC_green, NEUTRINO_ICON_BUTTON_GREEN);
|
CMenuForwarder *m1 = new CMenuForwarder(LOCALE_COLORTHEMEMENU_SAVE, true , NULL, &nameInput, NULL, CRCInput::RC_green, NEUTRINO_ICON_BUTTON_GREEN);
|
||||||
|
|
||||||
// Don't show SAVE if UserDir does'nt exist
|
// Don't show SAVE if UserDir does'nt exist
|
||||||
if ( access(USERDIR, F_OK) != 0 ) { // check for existance
|
if ( access(USERDIR, F_OK) != 0 ) { // check for existance
|
||||||
|
Reference in New Issue
Block a user