mirror of
https://github.com/0intro/wmii
synced 2024-12-24 04:16:50 +03:00
Fixed memory leak on destroying clients
This commit is contained in:
parent
eb1652d7a9
commit
225aee7072
@ -382,6 +382,8 @@ destroy_client(Client *c)
|
||||
|
||||
for(v=view; v; v=v->next)
|
||||
detach_from_view(v, c);
|
||||
*c->tags = '\0';
|
||||
update_client_views(c);
|
||||
|
||||
unmap_client(c);
|
||||
|
||||
|
@ -300,7 +300,7 @@ arrange_view(View *v)
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
void
|
||||
update_client_views(Client *c)
|
||||
{
|
||||
static ViewLink *free_view_links = nil;
|
||||
|
@ -326,6 +326,7 @@ void arrange_view(View *v);
|
||||
void scale_view(View *v, float w);
|
||||
View *create_view(const char *name);
|
||||
void focus_view(View *v);
|
||||
void update_client_views(Client *c);
|
||||
XRectangle *rects_of_view(View *v, unsigned int *num);
|
||||
View *view_of_id(unsigned short id);
|
||||
void select_view(const char *arg);
|
||||
|
Loading…
Reference in New Issue
Block a user