CX_OBJECT_FREE(cxView, cxObject) { allocator->free(this->cAttr); this->cAttr = NULL; CX_RELEASE(this->removes); CX_EVENT_RELEASE(this->onDirty); CX_EVENT_RELEASE(this->onEnter); CX_EVENT_RELEASE(this->onExit); CX_EVENT_RELEASE(this->onUpdate); CX_EVENT_RELEASE(this->onResize); CX_EVENT_RELEASE(this->onLayout); CX_RELEASE(this->subViews); CX_RELEASE(this->actions); CX_RELEASE(this->caches); CX_RELEASE(this->args); CX_METHOD_RELEASE(this->IsTouch); CX_METHOD_RELEASE(this->Touch); CX_METHOD_RELEASE(this->IsOnKey); CX_METHOD_RELEASE(this->OnKey); CX_METHOD_RELEASE(this->Draw); CX_METHOD_RELEASE(this->After); CX_METHOD_RELEASE(this->Before); CX_SIGNAL_RELEASE(this->EmmitDraw); CX_SIGNAL_RELEASE(this->EmmitAfter); CX_SIGNAL_RELEASE(this->EmmitBefore); }
CX_OBJECT_FREE(cxEngine, cxObject) { CX_RELEASE(this->bmpfonts); CX_RELEASE(this->actions); CX_RELEASE(this->lang); CX_RELEASE(this->datasets); CX_RELEASE(this->scripts); CX_RELEASE(this->dbenvs); CX_RELEASE(this->window); CX_EVENT_RELEASE(this->onExit); CX_SIGNAL_RELEASE(this->onRecvJson); CX_SIGNAL_RELEASE(this->onTouch); CX_SIGNAL_RELEASE(this->onUpdate); CX_SIGNAL_RELEASE(this->onPause); CX_SIGNAL_RELEASE(this->onResume); CX_SIGNAL_RELEASE(this->onMemory); CX_METHOD_RELEASE(this->MakeAction); CX_METHOD_RELEASE(this->MakeView); cxEventBaseDestroy(); cxCurveDestroy(); cxOpenGLDestroy(); cxIconvDestroy(); cxFreeTypeDestroy(); cxPlayerDestroy(); cxMessageDestroy(); xmlCleanupGlobals(); kmGLFreeAll(); cxAutoPoolDestroy(); lua_close(gL); }