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,10 +249,13 @@ draw_parser_data_init(draw_parser_data_t *pdata)
|
|||
static inline void
|
||||
draw_parser_data_wipe(draw_parser_data_t *pdata)
|
||||
{
|
||||
p_delete(&pdata->text);
|
||||
if(pdata)
|
||||
{
|
||||
pango_attr_list_unref(pdata->attr_list);
|
||||
p_delete(&pdata->text);
|
||||
draw_image_delete(&pdata->bg_image);
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
// vim: filetype=c:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=80
|
||||
|
|
Loading…
Reference in New Issue