From cf209c8c9faa374746ac865ea7cecd356dcc41c8 Mon Sep 17 00:00:00 2001 From: kramm Date: Sun, 6 Apr 2008 16:50:55 +0000 Subject: [PATCH 1/1] remove parameter listing upon cleanup --- lib/pdf/pdf.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/pdf/pdf.cc b/lib/pdf/pdf.cc index 1d56679..977aa2b 100644 --- a/lib/pdf/pdf.cc +++ b/lib/pdf/pdf.cc @@ -484,6 +484,8 @@ void pdf_destroy(gfxsource_t*src) parameter_t*p = device_config; while(p) { parameter_t*next = p->next; + if(p->name) free(p->name);p->name = 0; + if(p->value) free(p->value);p->value =0; p->next = 0;delete p; p = next; } -- 1.7.10.4