diff --git a/src/icon.c b/src/icon.c index 6f5f02e9..e823fecd 100644 --- a/src/icon.c +++ b/src/icon.c @@ -518,9 +518,8 @@ char *wIconStore(WIcon *icon) } if (!RSaveImage(image, path, "XPM")) { - wfree(path); wfree(filename); - path = NULL; + filename = NULL; } wfree(path);