aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar ulion <ulion@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-11-23 13:46:38 +0000
committerGravatar ulion <ulion@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-11-23 13:46:38 +0000
commit9ba75c2ccf153fc626c40de158829ef4d3cfd373 (patch)
tree61217af3d8b2f26d65557a5978b679be18f369b4
parentdf036d0bf5d30ecc1b360ec6861e26c19c9ba075 (diff)
Fix memory leak of image_data.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25149 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r--libvo/vo_macosx.m5
1 files changed, 5 insertions, 0 deletions
diff --git a/libvo/vo_macosx.m b/libvo/vo_macosx.m
index ebcf3eb1e3..d0cde9b414 100644
--- a/libvo/vo_macosx.m
+++ b/libvo/vo_macosx.m
@@ -252,6 +252,11 @@ static void uninit(void)
[NSApp nextEventMatchingMask:NSAnyEventMask untilDate:nil inMode:NSDefaultRunLoopMode dequeue:YES];
[finalPool release];
}
+ if (!shared_buffer)
+ {
+ free(image_data);
+ image_data = NULL;
+ }
}
static int preinit(const char *arg)