From 76eab972099387d3dbfaabbda7e89f36c515e8ca Mon Sep 17 00:00:00 2001 From: Brad Jorsch Date: Tue, 12 Oct 2010 17:29:21 -0400 Subject: [PATCH] Don't save app settings proplist when nothing changed Signed-off-by: Brad Jorsch --- src/application.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/application.c b/src/application.c index fad91869..f3993ffc 100644 --- a/src/application.c +++ b/src/application.c @@ -165,6 +165,8 @@ void wApplicationSaveIconPathFor(char *iconPath, char *wm_instance, char *wm_cla val = WMCreatePLString(iconPath); WMPutInPLDictionary(adict, iconk, val); WMReleasePropList(val); + } else { + val = NULL; } WMReleasePropList(key); WMReleasePropList(iconk);