Commit 6b4ec806 authored by Laurent Aimar's avatar Laurent Aimar

Fixed text_style_Copy() behaviour.

parent 873bcee7
...@@ -184,16 +184,11 @@ text_style_t *text_style_Copy( text_style_t *p_dst, const text_style_t *p_src ) ...@@ -184,16 +184,11 @@ text_style_t *text_style_Copy( text_style_t *p_dst, const text_style_t *p_src )
if( !p_src ) if( !p_src )
return p_dst; return p_dst;
/* */
if( p_dst->psz_fontname )
free( p_dst->psz_fontname );
/* */ /* */
*p_dst = *p_src; *p_dst = *p_src;
/* */ if( p_src->psz_fontname )
if( p_dst->psz_fontname ) p_dst->psz_fontname = strdup( p_src->psz_fontname );
p_dst->psz_fontname = strdup( p_dst->psz_fontname );
return p_dst; return p_dst;
} }
......
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