summaryrefslogtreecommitdiffstats
path: root/libass
diff options
context:
space:
mode:
authoreugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-02-27 23:06:40 +0000
committereugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-02-27 23:06:40 +0000
commitbcad979a5621487d197eba154f758e1a93ae7556 (patch)
tree2fd3a3c954b6de58b76017610a3b449b32cbb466 /libass
parentb84c1b627f43dcf87fa5ce971042a9309a4c27c6 (diff)
downloadmpv-bcad979a5621487d197eba154f758e1a93ae7556.tar.bz2
mpv-bcad979a5621487d197eba154f758e1a93ae7556.tar.xz
Fix memory leak produced by the \blur patch.
Patch by Grigori G (greg chown ath cx). git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28750 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libass')
-rw-r--r--libass/ass_bitmap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libass/ass_bitmap.c b/libass/ass_bitmap.c
index d6d750631d..9ccb1bada9 100644
--- a/libass/ass_bitmap.c
+++ b/libass/ass_bitmap.c
@@ -62,8 +62,8 @@ static int generate_tables(ass_synth_priv_t* priv, double radius)
priv->g_w = 2*priv->g_r+1;
if (priv->g_r) {
- priv->g = malloc(priv->g_w * sizeof(unsigned));
- priv->gt2 = malloc(256 * priv->g_w * sizeof(unsigned));
+ priv->g = realloc(priv->g, priv->g_w * sizeof(unsigned));
+ priv->gt2 = realloc(priv->gt2, 256 * priv->g_w * sizeof(unsigned));
if (priv->g==NULL || priv->gt2==NULL) {
return -1;
}