diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-03-21 10:35:35 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-03-21 10:35:35 +0000 |
| commit | 94d871a390d1892a5fdf00e2ba87b5145dfe6a86 (patch) | |
| tree | d56f2898122ffc5debf64bf5cb9dad6a7789dbf4 /openbox | |
| parent | d4601cd0348caa9fdb7643a99f025dddbe5a34c9 (diff) | |
dont check for != NULL before freeing. pointless.
Diffstat (limited to 'openbox')
| -rw-r--r-- | openbox/client.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/openbox/client.c b/openbox/client.c index c44fe343..0a8dd1c7 100644 --- a/openbox/client.c +++ b/openbox/client.c @@ -947,8 +947,7 @@ void client_update_title(Client *self) { gchar *data = NULL; - if (self->title != NULL) - g_free(self->title); + g_free(self->title); /* try netwm */ if (!PROP_GETS(self->window, net_wm_name, utf8, data)) { @@ -982,8 +981,7 @@ void client_update_icon_title(Client *self) { gchar *data = NULL; - if (self->icon_title != NULL) - g_free(self->icon_title); + g_free(self->icon_title); /* try netwm */ if (!PROP_GETS(self->window, net_wm_icon_name, utf8, data)) { |
