[MPlayer-cvslog] r25148 - trunk/libvo/vo_macosx.m
ulion
subversion at mplayerhq.hu
Fri Nov 23 14:22:21 CET 2007
Author: ulion
Date: Fri Nov 23 14:22:21 2007
New Revision: 25148
Log:
Fix a memory leak when working in shared_buffer mode.
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:22:21 2007
@@ -119,10 +119,11 @@ static int config(uint32_t width, uint32
break;
}
image_bytes = (image_depth + 7) / 8;
- image_data = malloc(image_width*image_height*image_bytes);
if(!shared_buffer)
{
+ image_data = malloc(image_width*image_height*image_bytes);
+
monitor_aspect = (float)screen_frame.size.width/(float)screen_frame.size.height;
//set aspect
More information about the MPlayer-cvslog
mailing list