Commit 8ef648f3 authored by Tristan Matthews's avatar Tristan Matthews

text_style: fix use-after-free (cid #1313831)

parent 9d9f6d4d
......@@ -127,8 +127,8 @@ void text_segment_Delete( text_segment_t* segment )
if ( segment != NULL )
{
free( segment->psz_text );
free( segment );
text_style_Delete( segment->style );
free( segment );
}
}
......
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