From 0ada7c532d667d4a07e1c16309f0d60ecc72a5c2 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Sun, 31 Aug 2008 09:10:03 +0200 Subject: [PATCH] draw: unref attr_list on parser data wipe Signed-off-by: Julien Danjou --- common/draw.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/common/draw.h b/common/draw.h index a50a6f177..396d9ee31 100644 --- a/common/draw.h +++ b/common/draw.h @@ -249,9 +249,12 @@ 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