vlc | branch: master | Jean-Baptiste Kempf <[email protected]> | Mon Apr 6 19:12:10 2015 +0200| [efbc00f7cfb5fb5ca301bfc1b0d9ce2412f7e18f] | committer: Jean-Baptiste Kempf
subpicture: use the provided core function Signed-off-by: Jean-Baptiste Kempf <[email protected]> > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=efbc00f7cfb5fb5ca301bfc1b0d9ce2412f7e18f --- src/misc/subpicture.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/misc/subpicture.c b/src/misc/subpicture.c index e1237cb..bae12f8 100644 --- a/src/misc/subpicture.c +++ b/src/misc/subpicture.c @@ -307,7 +307,7 @@ subpicture_region_t* subpicture_region_Copy( subpicture_region_t *p_region_src ) p_region_dst->psz_text = p_region_src->psz_text ? strdup(p_region_src->psz_text) : NULL; p_region_dst->psz_html = p_region_src->psz_html ? strdup(p_region_src->psz_html) : NULL; if (p_region_src->p_style != NULL) { - p_region_dst->p_style = malloc(sizeof(*p_region_dst->p_style)); + p_region_dst->p_style = text_style_New(); p_region_dst->p_style = text_style_Copy(p_region_dst->p_style, p_region_src->p_style); } _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
