Corrected memory leak introduced with r690

git-svn-id: http://tint2.googlecode.com/svn/trunk@691 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
This commit is contained in:
google@craigoakes.com
2015-02-08 22:34:42 +00:00
parent 51fe905b47
commit bab686d8c4
2 changed files with 7 additions and 3 deletions

View File

@@ -288,8 +288,10 @@ void add_entry (char *key, char *value)
server.disable_transparency = atoi (value);
}
else if (strcmp (key, "panel_window_name") == 0) {
if (strlen(value) > 0)
if (strlen(value) > 0) {
free(panel_window_name);
panel_window_name = strdup (value);
}
}
/* Battery */