]> Dogcows Code - chaz/openbox/commitdiff
dont check for != NULL before freeing. pointless.
authorDana Jansens <danakj@orodu.net>
Fri, 21 Mar 2003 10:35:35 +0000 (10:35 +0000)
committerDana Jansens <danakj@orodu.net>
Fri, 21 Mar 2003 10:35:35 +0000 (10:35 +0000)
openbox/client.c

index c44fe3436de456a527cf340f771e7c76b95b70f8..0a8dd1c7d2c0aeac27dd593fc8b9293496a9cbf0 100644 (file)
@@ -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)) {
This page took 0.024838 seconds and 4 git commands to generate.