WPrefs: fix memory leak when editing a delay for the dock (Coverity #50156)

As reported by Coverity, the return string of WMGetTextFieldText is
malloced so it needs to be freed.

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
This commit is contained in:
Christophe CURIS authored and Carlos R. Mafra committed 2014-06-01 20:35:06 +01:00
1 parent 894d1c80a3
commit f4f96a8fb7
1 file changed
+1
+1
View File
@@ -120,6 +120,7 @@ static void autoDelayChanged(void *observerData, WMNotification *notification)
}
char *value = WMGetTextFieldText(anAutoDelayT);
adjustButtonSelectionBasedOnValue(panel, row, value);
free(value);
return;
}
}