mirror of
https://github.com/mpv-player/mpv
synced 2025-03-05 13:47:39 +00:00
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
This commit is contained in:
parent
5363464d0a
commit
df036d0bf5
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user