*/
void ITs_cairo_cleanup(void)
{
- if(g_pSurface)
+
+ if(g_pSurface != NULL)
{
cairo_surface_destroy (g_pSurface);
+ g_pSurface = NULL;
}
- if(g_pCairo_device)
+ if(g_pCairo_device != NULL )
{
cairo_device_destroy(g_pCairo_device);
+ g_pCairo_device = NULL;
}
- if(g_pEvas_gl_surface)
+ if(g_pEvas_gl_surface != NULL )
{
evas_gl_surface_destroy(g_pEvas_gl, g_pEvas_gl_surface);
+ g_pEvas_gl_surface = NULL;
}
- if(g_pEvas_gl_context)
+ if(g_pEvas_gl_context != NULL )
{
evas_gl_context_destroy(g_pEvas_gl, g_pEvas_gl_context);
+ g_pEvas_gl_context = NULL;
}
- if(g_pEvas_gl_config)
+ if(g_pEvas_gl_config != NULL )
{
evas_gl_config_free(g_pEvas_gl_config);
+ g_pEvas_gl_config = NULL;
}
- if(g_pEvas_gl)
+ if(g_pEvas_gl != NULL )
{
evas_gl_free(g_pEvas_gl);
+ g_pEvas_gl = NULL;
}
- if(g_pWin)
+ if(g_pWin != NULL )
{
evas_object_del(g_pWin);
+ g_pWin = NULL;
}
elm_shutdown();
+
return;
}