Commit 2357ced8 authored by Jean-Paul Saman's avatar Jean-Paul Saman

Don't leak memory.

parent a471fc70
...@@ -368,8 +368,9 @@ static subpicture_t *Filter( filter_t *p_filter, mtime_t date ) ...@@ -368,8 +368,9 @@ static subpicture_t *Filter( filter_t *p_filter, mtime_t date )
*pp_region = NULL; *pp_region = NULL;
break; break;
} }
(*pp_region)->psz_text = strdup( p_overlay->data.p_text ); p_filter->p_libvlc->pf_memcpy( (*pp_region)->p_style,
memcpy( (*pp_region)->p_style, &p_overlay->fontstyle, sizeof(text_style_t) ); &p_overlay->fontstyle,
sizeof(struct text_style_t) );
} }
else else
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment