# HG changeset patch # User ulion # Date 1195824141 0 # Node ID 9b4ca4dc1294399d081fdb7f43b3a25ec4bbffa4 # Parent 2e0a71d7c89fa2f712997b89237c8daa7a580563 Fix a memory leak when working in shared_buffer mode. diff -r 2e0a71d7c89f -r 9b4ca4dc1294 libvo/vo_macosx.m --- a/libvo/vo_macosx.m Fri Nov 23 13:17:36 2007 +0000 +++ b/libvo/vo_macosx.m Fri Nov 23 13:22:21 2007 +0000 @@ -119,10 +119,11 @@ 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