summaryrefslogtreecommitdiff
path: root/iup/srccontrols/iup_oldtabs.c
diff options
context:
space:
mode:
Diffstat (limited to 'iup/srccontrols/iup_oldtabs.c')
-rwxr-xr-xiup/srccontrols/iup_oldtabs.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/iup/srccontrols/iup_oldtabs.c b/iup/srccontrols/iup_oldtabs.c
index 43b0c57..5ea7f0a 100755
--- a/iup/srccontrols/iup_oldtabs.c
+++ b/iup/srccontrols/iup_oldtabs.c
@@ -2487,10 +2487,16 @@ static int iTabsMapMethod(Ihandle* ih)
static void iTabsUnMapMethod(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 void iTabsDestroyMethod(Ihandle* ih)