draw: unref attr_list on parser data wipe
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
e2de0270b2
commit
0ada7c532d
|
@ -249,9 +249,12 @@ draw_parser_data_init(draw_parser_data_t *pdata)
|
||||||
static inline void
|
static inline void
|
||||||
draw_parser_data_wipe(draw_parser_data_t *pdata)
|
draw_parser_data_wipe(draw_parser_data_t *pdata)
|
||||||
{
|
{
|
||||||
p_delete(&pdata->text);
|
|
||||||
if(pdata)
|
if(pdata)
|
||||||
|
{
|
||||||
|
pango_attr_list_unref(pdata->attr_list);
|
||||||
|
p_delete(&pdata->text);
|
||||||
draw_image_delete(&pdata->bg_image);
|
draw_image_delete(&pdata->bg_image);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue