From 27d6994bdc804bdaccf66888fd461b6863a47974 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Thu, 7 May 2015 22:32:17 -0400 Subject: [PATCH] Implemented stub uiUninit()s. --- darwin/init.m | 7 +++++++ unix/main.c | 6 ++++++ windows/init.c | 12 ++++++++++++ 3 files changed, 25 insertions(+) diff --git a/darwin/init.m b/darwin/init.m index 6ae53dcf..61140b4a 100644 --- a/darwin/init.m +++ b/darwin/init.m @@ -63,6 +63,13 @@ const char *uiInit(uiInitOptions *o) return NULL; } +void uiUninit(void) +{ + // TODO free menus + // TODO free application delegate + // TODO uninit alloc +} + void uiFreeInitError(const char *err) { } diff --git a/unix/main.c b/unix/main.c index 563cd5c6..b2682613 100644 --- a/unix/main.c +++ b/unix/main.c @@ -18,6 +18,12 @@ const char *uiInit(uiInitOptions *o) return NULL; } +void uiUninit(void) +{ + // TODO free menus + // TODO uninit alloc +} + void uiFreeInitError(const char *err) { g_free((gpointer) err); diff --git a/windows/init.c b/windows/init.c index 19e3340c..c07f9d46 100644 --- a/windows/init.c +++ b/windows/init.c @@ -105,6 +105,18 @@ const char *uiInit(uiInitOptions *o) return NULL; } +void uiUninit(void) +{ + // TODO free menus + // TODO delete hollow brush + // TODO uninit container + // TODO delete message font + // TODO uninit window + // TODO delete default cursor + // TODO delete default icon + // TODO uninit alloc +} + void uiFreeInitError(const char *err) { uiFree((void *) err);