From 5992a6929f1a0d856d096b4b164733d7bacb19a7 Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Fri, 16 Jul 2010 19:52:42 +0200 Subject: [PATCH] Clear a draw_text_context_t during wipe() This fixes a bug where pango was called with already-freed arguments because wipe() didn't zero out those variables and a later init() failed. Signed-off-by: Uli Schlachter --- draw.h | 1 + 1 file changed, 1 insertion(+) diff --git a/draw.h b/draw.h index 6bafb007..f3e30bfd 100644 --- a/draw.h +++ b/draw.h @@ -142,6 +142,7 @@ draw_text_context_wipe(draw_text_context_t *pdata) if(pdata->attr_list) pango_attr_list_unref(pdata->attr_list); p_delete(&pdata->text); + p_clear(pdata, 1); } }