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

index 550d7266b42b7b317a61fde420356084bcd44c97..01cca6539536d467ee5397cc9c59a3681c5acbee 100644 (file)
@@ -446,8 +446,7 @@ void screen_update_struts()
     GSList *it;
     guint i;
      
-    if (strut != NULL)
-       g_free(strut);
+    g_free(strut);
     strut = g_new0(Strut, screen_num_desktops + 1);
 
     for (it = client_list; it; it = it->next) {
@@ -471,9 +470,8 @@ static void screen_update_area()
 {
     guint i;
     gulong *dims;
-     
-    if (area != NULL)
-       g_free(area);
+
+    g_free(area);
     area = g_new0(Rect, screen_num_desktops + 1);
      
     dims = g_new(unsigned long, 4 * screen_num_desktops);
This page took 0.027033 seconds and 4 git commands to generate.