Add code to free all bitmaps remaining at close