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_cells.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'iup/srccontrols/iup_cells.c') diff --git a/iup/srccontrols/iup_cells.c b/iup/srccontrols/iup_cells.c index d9a7fe4..c771d6e 100755 --- a/iup/srccontrols/iup_cells.c +++ b/iup/srccontrols/iup_cells.c @@ -882,10 +882,16 @@ static int iCellsMapMethod(Ihandle* ih) static void iCellsUnMapMethod(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 iCellsCreateMethod(Ihandle* ih, void **params) -- cgit v1.2.3