From 072abd44e4bc9601ed19235b10aae73b3301e6a8 Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Fri, 28 May 2010 13:32:18 -0400 Subject: [PATCH] Fix a couple of leaks. --- cmd/wmii/ewmh.c | 2 +- cmd/wmii/view.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/wmii/ewmh.c b/cmd/wmii/ewmh.c index 3e75ed49..0f52fe79 100644 --- a/cmd/wmii/ewmh.c +++ b/cmd/wmii/ewmh.c @@ -360,7 +360,7 @@ ewmh_getstrut(Client *c) { long *strut; ulong n; - if(c->strut == nil) + if(c->strut != nil) free(c->strut); c->strut = nil; diff --git a/cmd/wmii/view.c b/cmd/wmii/view.c index cc94aa06..3a914761 100644 --- a/cmd/wmii/view.c +++ b/cmd/wmii/view.c @@ -149,6 +149,7 @@ view_destroy(View *v) { } free(v->areas); free(v->r); + free(v->pad); free(v); ewmh_updateviews(); }