Memory leak

svn path=/trunk/netsurf/; revision=11864
This commit is contained in:
Chris Young 2011-02-28 22:12:34 +00:00
parent 4213bd41fb
commit b768440a58
1 changed files with 6 additions and 0 deletions

View File

@ -2986,6 +2986,12 @@ void gui_window_destroy(struct gui_window *g)
DisposeObject(g->shared->objects[OID_MAIN]);
/* These aren't freed by the above.
* TODO: nav_west etc need freeing too */
DisposeObject(g->shared->objects[GID_ADDTAB_BM]);
DisposeObject(g->shared->objects[GID_CLOSETAB_BM]);
DisposeObject(g->shared->objects[GID_TABS_FLAG]);
ami_free_menulabs(g->shared);
free(g->shared->wintitle);
ami_utf8_free(g->shared->status);