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

git version control git at videolan.org
Mon Jun 15 14:47:31 CEST 2009


vlc | branch: master | Jean-Paul Saman <jpsaman at videolan.org> | Mon May 25 11:24:40 2009 +0200| [b0c6eb12edbfad03f548627df751675cf401db45] | committer: Derk-Jan Hartman 

macosx: removeallObjects from NSMutableArray before releasing it.
(cherry picked from commit b6a37e5e59aa4ad334d7de4b0440d88085b4fcde)

Signed-off-by: Derk-Jan Hartman <hartman at videolan.org>

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

 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 18519aa..fe57179 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];
 }




More information about the vlc-devel mailing list