From eed0eb6a476d54ce19aeff137984aa981d9e3976 Mon Sep 17 00:00:00 2001 From: Pixel Date: Tue, 15 Jun 2010 00:59:57 -0700 Subject: Upgrading to iup 3.1 --- iup/srccontrols/iup_gauge.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'iup/srccontrols/iup_gauge.c') diff --git a/iup/srccontrols/iup_gauge.c b/iup/srccontrols/iup_gauge.c index 8732eee..300b28e 100755 --- a/iup/srccontrols/iup_gauge.c +++ b/iup/srccontrols/iup_gauge.c @@ -347,10 +347,16 @@ static char* iGaugeGetTextAttrib(Ihandle* ih) static void iGaugeUnMapMethod(Ihandle* ih) { if (ih->data->cddbuffer) + { cdKillCanvas(ih->data->cddbuffer); + ih->data->cddbuffer = NULL; + } if (ih->data->cdcanvas) + { cdKillCanvas(ih->data->cdcanvas); + ih->data->cdcanvas = NULL; + } } static int iGaugeMapMethod(Ihandle* ih) -- cgit v1.2.3