Fixed memory leak on destroying clients

This commit is contained in:
Kris Maglione 2006-06-20 20:40:34 -04:00
parent eb1652d7a9
commit 225aee7072
3 changed files with 4 additions and 1 deletions

View File

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

View File

@ -300,7 +300,7 @@ arrange_view(View *v)
}
}
static void
void
update_client_views(Client *c)
{
static ViewLink *free_view_links = nil;

View File

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