diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-03-21 10:34:44 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-03-21 10:34:44 +0000 |
| commit | d4601cd0348caa9fdb7643a99f025dddbe5a34c9 (patch) | |
| tree | 92853f5db5a965278f1785aaed89da1732936b3c | |
| parent | d33dce48275056fd4492160624d9bc99dd2603c1 (diff) | |
don't check for != NULL before freeing. pointless
| -rw-r--r-- | openbox/screen.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/openbox/screen.c b/openbox/screen.c index 550d7266..01cca653 100644 --- a/openbox/screen.c +++ b/openbox/screen.c @@ -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); |
