Fix a couple of leaks.

This commit is contained in:
Kris Maglione 2010-05-28 13:32:18 -04:00
parent 6be3355002
commit 072abd44e4
2 changed files with 2 additions and 1 deletions

View File

@ -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;

View File

@ -149,6 +149,7 @@ view_destroy(View *v) {
}
free(v->areas);
free(v->r);
free(v->pad);
free(v);
ewmh_updateviews();
}