From: Christophe CURIS <[email protected]> As reported by Coverity, the return string of WMGetTextFieldText is malloced so it needs to be freed.
Signed-off-by: Christophe CURIS <[email protected]> --- WPrefs.app/Docks.c | 1 + 1 file changed, 1 insertion(+) diff --git a/WPrefs.app/Docks.c b/WPrefs.app/Docks.c index 2a5265a..8404941 100644 --- a/WPrefs.app/Docks.c +++ b/WPrefs.app/Docks.c @@ -120,6 +120,7 @@ static void autoDelayChanged(void *observerData, WMNotification *notification) } char *value = WMGetTextFieldText(anAutoDelayT); adjustButtonSelectionBasedOnValue(panel, row, value); + free(value); return; } } -- 1.9.2 -- To unsubscribe, send mail to [email protected].
