mirror of https://github.com/0intro/wmii
Fix a couple of leaks.
This commit is contained in:
parent
6be3355002
commit
072abd44e4
|
@ -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;
|
||||
|
||||
|
|
|
@ -149,6 +149,7 @@ view_destroy(View *v) {
|
|||
}
|
||||
free(v->areas);
|
||||
free(v->r);
|
||||
free(v->pad);
|
||||
free(v);
|
||||
ewmh_updateviews();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue