[MPlayer-cvslog] r25149 - trunk/libvo/vo_macosx.m

ulion subversion at mplayerhq.hu
Fri Nov 23 14:46:38 CET 2007


Author: ulion
Date: Fri Nov 23 14:46:38 2007
New Revision: 25149

Log:
Fix memory leak of image_data.


Modified:
   trunk/libvo/vo_macosx.m

Modified: trunk/libvo/vo_macosx.m
==============================================================================
--- trunk/libvo/vo_macosx.m	(original)
+++ trunk/libvo/vo_macosx.m	Fri Nov 23 14:46:38 2007
@@ -252,6 +252,11 @@ static void uninit(void)
         [NSApp nextEventMatchingMask:NSAnyEventMask untilDate:nil inMode:NSDefaultRunLoopMode dequeue:YES];
         [finalPool release];
     }
+    if (!shared_buffer)
+    {
+        free(image_data);
+        image_data = NULL;
+    }
 }
 
 static int preinit(const char *arg)



More information about the MPlayer-cvslog mailing list