void sync_destroy_device(struct sync_device *d) { free(d->base); sync_data_deinit(&d->data); free(d); #if defined(USE_AMITCP) && !defined(SYNC_PLAYER) if (socket_base) { CloseLibrary(socket_base); socket_base = NULL; } #endif }
SyncDocument::~SyncDocument() { sync_data_deinit(this); clearUndoStack(); clearRedoStack(); }