From b768440a58b325ce9375bc2a8a747bea7c6cdad2 Mon Sep 17 00:00:00 2001 From: Chris Young Date: Mon, 28 Feb 2011 22:12:34 +0000 Subject: [PATCH] Memory leak svn path=/trunk/netsurf/; revision=11864 --- amiga/gui.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/amiga/gui.c b/amiga/gui.c index b75e053a1..a50395a74 100755 --- a/amiga/gui.c +++ b/amiga/gui.c @@ -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);