diff --git a/modules/gui/macosx/misc.m b/modules/gui/macosx/misc.m index 18519aa4a857a82e8b0ef355f8ed2eee50374f1d..fe57179bc6570417461c169d94bfd4e74c4c5137 100644 --- a/modules/gui/macosx/misc.m +++ b/modules/gui/macosx/misc.m @@ -134,6 +134,7 @@ static NSMutableArray *blackoutWindows = NULL; - (void)dealloc { + [blackoutWindows removeAllObjects]; [blackoutWindows release]; [super dealloc]; }