[libbluray-devel] Fixed memory leak in textst renderer

hpi1 git at videolan.org
Fri Dec 13 10:45:51 CET 2013


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Fri Dec 13 10:44:24 2013 +0200| [45f79a65c1c7bd91a32a2cfe9f0e9c237ce57265] | committer: hpi1

Fixed memory leak in textst renderer

> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=45f79a65c1c7bd91a32a2cfe9f0e9c237ce57265
---

 src/libbluray/decoders/graphics_controller.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/libbluray/decoders/graphics_controller.c b/src/libbluray/decoders/graphics_controller.c
index 3251c18..e3ed6d2 100644
--- a/src/libbluray/decoders/graphics_controller.c
+++ b/src/libbluray/decoders/graphics_controller.c
@@ -1049,6 +1049,8 @@ static int _render_textst(GRAPHICS_CONTROLLER *p, uint32_t stc, GC_NAV_CMDS *cmd
             textst_render(p->textst_render, &bmp, style, region);
 
             _render_textst_region(p, dialog[ii].start_pts, style, &bmp, s->style->palette);
+
+            X_FREE(bmp.mem);
         }
 
         /* commit changes */



More information about the libbluray-devel mailing list