Index: uspace/lib/gui/window.c
===================================================================
--- uspace/lib/gui/window.c	(revision 5e3e42c77aaf72c8510fc527364cb6b0708ce830)
+++ uspace/lib/gui/window.c	(revision 94f3747905c49c5a1d7e8a5b850e5d66a8acad7e)
@@ -569,4 +569,12 @@
 	win->focus = NULL;
 
+	gfx_bitmap_destroy(win->bitmap);
+
+	/*
+	 * XXX Here we should properly destroy the IPC GC. We only have
+	 * the generic GC so either it would need to be cast back or
+	 * GC needs a virtual destructor.
+	 */
+
 	display_window_destroy(win->dwindow);
 	display_close(win->display);
