aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar ulion <ulion@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-11-23 13:22:21 +0000
committerGravatar ulion <ulion@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-11-23 13:22:21 +0000
commitdf036d0bf5d30ecc1b360ec6861e26c19c9ba075 (patch)
tree71cb715ad39922ff7364839d3611f85927bff869
parent5363464d0ae871a896a2b3324fbaf1e71a1e24fb (diff)
Fix a memory leak when working in shared_buffer mode.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25148 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r--libvo/vo_macosx.m3
1 files changed, 2 insertions, 1 deletions
diff --git a/libvo/vo_macosx.m b/libvo/vo_macosx.m
index 7cf846b7c5..ebcf3eb1e3 100644
--- a/libvo/vo_macosx.m
+++ b/libvo/vo_macosx.m
@@ -119,10 +119,11 @@ static int config(uint32_t width, uint32_t height, uint32_t d_width, uint32_t d_
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