Remove redundant checks before free

Remove checks for NULL before g_free().

https://bugzilla.gnome.org/show_bug.cgi?id=733156
This commit is contained in:
Marek Kasik
2014-07-14 15:37:06 +02:00
parent 24d614357a
commit c7c4c3bf5e
4 changed files with 4 additions and 9 deletions

View File

@@ -460,9 +460,7 @@ printevent (const char *pname, int event, const char *tag)
static gchar *event_string = NULL;
GString *str;
if (event_string) {
g_free(event_string);
}
g_free(event_string);
str = g_string_new ("");
g_string_printf (str, "[%s] [%-20s]", tag, pname);