[ITC][cairo][Non-ACR][Fix timeout issue - modify cleanup]
authorperforce <perforce@perforce.(none)>
Wed, 8 Jun 2016 00:22:37 +0000 (09:22 +0900)
committerperforce <perforce@perforce.(none)>
Wed, 8 Jun 2016 00:22:37 +0000 (09:22 +0900)
Change-Id: Ib892d14d243bd5129b61a3841df638eeb7b7a239
Signed-off-by: perforce <perforce@perforce.(none)>
src/itc/cairo/ITs-cairo.c

index b290b68..14d3e8d 100755 (executable)
@@ -103,42 +103,51 @@ void ITs_cairo_startup(void)
  */ 
 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;
 }