[SCM] libass/master.stable: Take from patch from upstream VCS to fix potential memory leak.
alessio at users.alioth.debian.org
alessio at users.alioth.debian.org
Mon Feb 6 11:16:05 UTC 2012
The following commit has been merged in the master.stable branch:
commit 55b9114b5687860a380bd27807736b41b0d58129
Author: Alessio Treglia <alessio at debian.org>
Date: Mon Feb 6 12:07:41 2012 +0100
Take from patch from upstream VCS to fix potential memory leak.
- libass/ass_parse.c: Free clip vector drawing if multiple clip
vectors appear in a single line.
diff --git a/debian/patches/1001-memory_leak.patch b/debian/patches/1001-memory_leak.patch
new file mode 100644
index 0000000..8527abd
--- /dev/null
+++ b/debian/patches/1001-memory_leak.patch
@@ -0,0 +1,16 @@
+Subject: Fix potential, small memory leak.
+Origin: upstream, http://code.google.com/p/libass/source/detail?r=7bdeea8453b2
+---
+ libass/ass_parse.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+--- libass.orig/libass/ass_parse.c
++++ libass/libass/ass_parse.c
+@@ -210,6 +210,7 @@ static char *parse_vector_clip(ASS_Rende
+ int res = 0;
+ ASS_Drawing *drawing;
+
++ ass_drawing_free(render_priv->state.clip_drawing);
+ render_priv->state.clip_drawing = ass_drawing_new(
+ render_priv->fontconfig_priv,
+ render_priv->state.font,
diff --git a/debian/patches/series b/debian/patches/series
index 34689e2..0a28ad1 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
# Patch series for quilt
052_as-needed.diff
+1001-memory_leak.patch
--
LibASS packaging
More information about the pkg-multimedia-commits
mailing list