fix prevent violation
authorwoojin <woojin2.jung@samsung.com>
Mon, 29 Jul 2013 04:26:44 +0000 (13:26 +0900)
committerwoojin <woojin2.jung@samsung.com>
Mon, 29 Jul 2013 04:26:44 +0000 (13:26 +0900)
Change-Id: Id0e28c7bc2f7d33b202ff9ec092b93202589845a

helper/dacapture.c
probe_event/da_event.c

index fd3ae3d..61359ba 100755 (executable)
@@ -276,8 +276,13 @@ static Evas* create_canvas(int width, int height)
        einfo->info.alpha_threshold = 0;
        einfo->info.func.new_update_region = NULL;
        einfo->info.func.free_update_region = NULL;
-       evas_engine_info_set(canvas, (Evas_Engine_Info*)einfo);
-
+       if(unlikely(evas_engine_info_set(canvas, (Evas_Engine_Info*)einfo) == EINA_FALSE))
+       {
+               PRINTMSG("ERROR: could not set evas engine info!\n");
+               evas_free(canvas);
+               return NULL;
+       }
+                       
        return canvas;
 }
 
index d3d717d..b3bfba1 100755 (executable)
@@ -79,8 +79,11 @@ void on_orientation_changed(int angle, bool capi)
        probeBlockStart();
 
        internal_angle = angle;
-       runtime_info_get_value_bool(
-                       RUNTIME_INFO_KEY_AUTO_ROTATION_ENABLED, &autoRotation);
+       if(runtime_info_get_value_bool(
+                       RUNTIME_INFO_KEY_AUTO_ROTATION_ENABLED, &autoRotation) < 0)
+       {
+               PRINTMSG("ERROR: could not get auto rotation value!\n");
+       }
 
        if(autoRotation)        // rotation is not locked
        {