Mercurial > mplayer.hg
comparison libvo/vo_macosx.m @ 25120:9b4ca4dc1294
Fix a memory leak when working in shared_buffer mode.
author | ulion |
---|---|
date | Fri, 23 Nov 2007 13:22:21 +0000 |
parents | bed4188998ca |
children | 786b99c1ff94 |
comparison
equal
deleted
inserted
replaced
25119:2e0a71d7c89f | 25120:9b4ca4dc1294 |
---|---|
117 case IMGFMT_YUY2: | 117 case IMGFMT_YUY2: |
118 image_depth = 16; | 118 image_depth = 16; |
119 break; | 119 break; |
120 } | 120 } |
121 image_bytes = (image_depth + 7) / 8; | 121 image_bytes = (image_depth + 7) / 8; |
122 image_data = malloc(image_width*image_height*image_bytes); | |
123 | 122 |
124 if(!shared_buffer) | 123 if(!shared_buffer) |
125 { | 124 { |
125 image_data = malloc(image_width*image_height*image_bytes); | |
126 | |
126 monitor_aspect = (float)screen_frame.size.width/(float)screen_frame.size.height; | 127 monitor_aspect = (float)screen_frame.size.width/(float)screen_frame.size.height; |
127 | 128 |
128 //set aspect | 129 //set aspect |
129 panscan_init(); | 130 panscan_init(); |
130 aspect_save_orig(width,height); | 131 aspect_save_orig(width,height); |