[vlc-devel] commit: macosx: removeallObjects from NSMutableArray before releasing it. ( Jean-Paul Saman )

git version control git at videolan.org
Sun Jun 14 20:09:09 CEST 2009


vlc | branch: 1.0-bugfix | Jean-Paul Saman <jpsaman at videolan.org> | Mon May 25 11:24:40 2009 +0200| [b6a37e5e59aa4ad334d7de4b0440d88085b4fcde] | committer: Jean-Paul Saman 

macosx: removeallObjects from NSMutableArray before releasing it.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b6a37e5e59aa4ad334d7de4b0440d88085b4fcde
---

 modules/gui/macosx/misc.m |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

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




More information about the vlc-devel mailing list