draw: unref attr_list on parser data wipe

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-08-31 09:10:03 +02:00
parent e2de0270b2
commit 0ada7c532d
1 changed files with 4 additions and 1 deletions

View File

@ -249,10 +249,13 @@ 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
// vim: filetype=c:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=80 // vim: filetype=c:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=80