summaryrefslogtreecommitdiff
path: root/iup/srccontrols/iup_cells.c
diff options
context:
space:
mode:
Diffstat (limited to 'iup/srccontrols/iup_cells.c')
-rwxr-xr-xiup/srccontrols/iup_cells.c6
1 files changed, 6 insertions, 0 deletions
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)