int main(int argc, char* argv[]) { Node* n1 = new Node(1); Node* n2 = new Node(2); Node* n3 = new Node(3); n1->neighbors.push_back(n2); n1->neighbors.push_back(n3); clone(n1); m_cleanup(); return 0; }
void IconModel::useCacheFinished() { if(g_offline) { emit error(); return; } m_cleanup(); foreach (IconObject *obj, g_dataList) { if (obj) { m_dataList.append(new IconObject(obj->name(), obj->title(), obj->icon(), obj->url())); } } emit iconChanged(); }
void operator()(void* p) { m_cleanup(static_cast<T*>(p)); }
IconModel::~IconModel() { m_cleanup(); }
static void m_signal_callback_handler(int signum) { printf("Bye :)\n"); m_cleanup(); exit(signum); }