From: woojin Date: Mon, 29 Jul 2013 04:26:44 +0000 (+0900) Subject: fix prevent violation X-Git-Tag: 2.2.1_release~12 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=12afa1216d6bf505a6d88f6b8f0f2145fed7701f;p=framework%2Fsystem%2Fdynamic-analysis-probe.git fix prevent violation Change-Id: Id0e28c7bc2f7d33b202ff9ec092b93202589845a --- diff --git a/helper/dacapture.c b/helper/dacapture.c index fd3ae3d..61359ba 100755 --- a/helper/dacapture.c +++ b/helper/dacapture.c @@ -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; } diff --git a/probe_event/da_event.c b/probe_event/da_event.c index d3d717d..b3bfba1 100755 --- a/probe_event/da_event.c +++ b/probe_event/da_event.c @@ -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 {