mirror of
https://github.com/gryf/wmaker.git
synced 2026-02-01 21:45:45 +01:00
WPrefs: Fix memory leak in Expert tab
As reported by Coverity (CID #331553), we leak the allocated string returned by 'WMGetTextFieldText' Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
This commit is contained in:
committed by
Carlos R. Mafra
parent
4559cbbccc
commit
7c50721747
@@ -315,6 +315,7 @@ static void storeDefaults(_Panel *panel)
|
||||
|
||||
text = WMGetTextFieldText(panel->textfield[i]);
|
||||
value = atoi(text);
|
||||
wfree(text);
|
||||
|
||||
SetIntegerForKey(value, expert_options[i].op_name);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user