[vlc-devel] commit: vout_macosx: Fix a leak. (Pierre d'Herbemont )

git version control git at videolan.org
Sun Jan 24 15:48:39 CET 2010


vlc | branch: master | Pierre d'Herbemont <pdherbemont at free.fr> | Sun Jan 24 12:25:01 2010 +0100| [12a36253521fbd28b624c11681517009e49f346b] | committer: Pierre d'Herbemont 

vout_macosx: Fix a leak.

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

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

diff --git a/modules/video_output/macosx.m b/modules/video_output/macosx.m
index c29c483..fe508fe 100644
--- a/modules/video_output/macosx.m
+++ b/modules/video_output/macosx.m
@@ -342,6 +342,8 @@ static void OpenglSwap(vout_opengl_t *gl)
         return nil;
 
     self = [super initWithFrame:NSMakeRect(0,0,10,10) pixelFormat:fmt];
+    [fmt release];
+
     if (!self)
         return nil;
 




More information about the vlc-devel mailing list