From 4d7f4d85318071eb589215017cefcc9d009e93d7 Mon Sep 17 00:00:00 2001 From: Edouard DUPIN Date: Mon, 2 Sep 2013 21:06:50 +0200 Subject: [PATCH] [DEV] remove the end error --- sources/appl/init.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/sources/appl/init.cpp b/sources/appl/init.cpp index c5a4de9..0314196 100644 --- a/sources/appl/init.cpp +++ b/sources/appl/init.cpp @@ -30,9 +30,6 @@ //#include #include -MainWindows * basicWindows = NULL; - - /** * @brief Main of the program (This can be set in every case, but it is not used in Andoid...). * @param std IO @@ -93,7 +90,7 @@ bool APP_Init(ewol::eContext& _context) cCurrentPath[FILENAME_MAX - 1] = '\0'; //APPL_INFO("The current working directory is " << cCurrentPath); - basicWindows = new MainWindows(); + MainWindows* basicWindows = new MainWindows(); if (NULL == basicWindows) { APPL_ERROR("Can not allocate the basic windows"); @@ -132,10 +129,13 @@ bool APP_Init(ewol::eContext& _context) void APP_UnInit(ewol::eContext& _context) { APPL_INFO("==> Un-Init "PROJECT_NAME" (START)"); + ewol::Windows* tmpWindows = _context.GetWindows(); - if (NULL != basicWindows) { - delete(basicWindows); - basicWindows = NULL; + _context.SetWindows(NULL); + + if (NULL != tmpWindows) { + delete(tmpWindows); + tmpWindows = NULL; } cTagsManager::UnInit();