static void dispose (GObject *object) { NMDeviceOlpcMesh *self = NM_DEVICE_OLPC_MESH (object); NMDeviceOlpcMeshPrivate *priv = NM_DEVICE_OLPC_MESH_GET_PRIVATE (self); NMManager *manager; if (priv->dispose_has_run) { G_OBJECT_CLASS (nm_device_olpc_mesh_parent_class)->dispose (object); return; } priv->dispose_has_run = TRUE; if (priv->wifi_data) wifi_utils_deinit (priv->wifi_data); device_cleanup (self); manager = nm_manager_get (); if (priv->device_added_id) g_signal_handler_disconnect (manager, priv->device_added_id); g_object_unref (manager); G_OBJECT_CLASS (nm_device_olpc_mesh_parent_class)->dispose (object); }
void cleanup() { device_cleanup(); alignedFree(g_pixels); g_pixels = nullptr; g_width = -1; g_height = -1; }
TutorialApplication::~TutorialApplication() { g_ispc_scene = nullptr; device_cleanup(); alignedFree(pixels); pixels = nullptr; width = 0; height = 0; alignedFree(g_stats); g_stats = nullptr; }
extern "C" void run_cleanup(uint32_t in_BufferCount, void** in_ppBufferPointers, uint64_t* in_pBufferLengths, void* in_pMiscData, uint16_t in_MiscDataLength, void* in_pReturnValue, uint16_t in_ReturnValueLength) { device_cleanup(); if (g_ispc_scene) delete g_ispc_scene; g_ispc_scene = nullptr; }
void cleanup() { device_cleanup(); alignedFree(g_pixels); g_pixels = NULL; }
static void __attribute__ ((destructor)) mud_exit(void) { DBG("[%d] hpmud_exit()\n", getpid()); device_cleanup(msp); }
static void real_take_down (NMDevice *dev) { device_cleanup (NM_DEVICE_OLPC_MESH (dev)); }
void kernelConnect_exit(void) { syscall_cleanup(); device_cleanup(); //test_cleanup(thread); }
void cleanup() { device_cleanup(); alignedFree(g_pixels); g_pixels = nullptr; }