[hackers] [wmii] Fix a couple of leaks. || Kris Maglione

From: <hg_AT_suckless.org>
Date: Fri, 28 May 2010 17:32:26 +0000 (UTC)

changeset: 2666:abd1443bf69b
tag: tip
user: Kris Maglione <kris_AT_suckless.org>
date: Fri May 28 13:32:18 2010 -0400
files: cmd/wmii/ewmh.c cmd/wmii/view.c
description:
Fix a couple of leaks.

diff -r 4b71bf397336 -r abd1443bf69b cmd/wmii/ewmh.c
--- a/cmd/wmii/ewmh.c Fri May 28 12:46:48 2010 -0400
+++ b/cmd/wmii/ewmh.c Fri May 28 13:32:18 2010 -0400
@@ -360,7 +360,7 @@
         long *strut;
         ulong n;
 
- if(c->strut == nil)
+ if(c->strut != nil)
                 free(c->strut);
         c->strut = nil;
 
diff -r 4b71bf397336 -r abd1443bf69b cmd/wmii/view.c
--- a/cmd/wmii/view.c Fri May 28 12:46:48 2010 -0400
+++ b/cmd/wmii/view.c Fri May 28 13:32:18 2010 -0400
@@ -149,6 +149,7 @@
         }
         free(v->areas);
         free(v->r);
+ free(v->pad);
         free(v);
         ewmh_updateviews();
 }
Received on Fri May 28 2010 - 17:32:26 UTC

This archive was generated by hypermail 2.2.0 : Fri May 28 2010 - 17:36:04 UTC