From 54e947eed3d75d0fbae533e7e4cce8fe84aaf77c Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Wed, 8 Apr 2015 00:43:35 -0400 Subject: Started work on ensuring things get cleaned up. Added a destroy() method to uiControl and implemented most of the work for Windows. --- new/control.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'new/control.c') diff --git a/new/control.c b/new/control.c index c3ee677..ad03c49 100644 --- a/new/control.c +++ b/new/control.c @@ -1,6 +1,11 @@ // 7 april 2015 #include "uipriv.h" +void uiControlDestroy(uiControl *c) +{ + (*(c->destroy))(c); +} + uintptr_t uiControlHandle(uiControl *c) { return (*(c->handle))(c); -- cgit v1.2.3