summaryrefslogtreecommitdiff
path: root/src/tests/emotion
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-09-01 19:35:44 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-09-01 19:40:47 +0900
commit7b219a9e9959ff7cbb2a0f611790df2f1ea8933e (patch)
treecd7ff48add8473f8673f91976fe1922f0e4e3d49 /src/tests/emotion
parent637fe65e98262819805abdd683d5ec551d743d20 (diff)
emotion test - fix lack of null checks in test code
fix CID 1232081 1232080 1232079 1232078 1232077
Diffstat (limited to 'src/tests/emotion')
-rw-r--r--src/tests/emotion/emotion_test_main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/tests/emotion/emotion_test_main.c b/src/tests/emotion/emotion_test_main.c
index 5b27980c90..24ab7dbffe 100644
--- a/src/tests/emotion/emotion_test_main.c
+++ b/src/tests/emotion/emotion_test_main.c
@@ -504,6 +504,7 @@ video_obj_signal_frame_move_start_cb(void *data EINA_UNUSED, Evas_Object *o, con
504 Evas_Coord x, y; 504 Evas_Coord x, y;
505 505
506 fd = evas_object_data_get(o, "frame_data"); 506 fd = evas_object_data_get(o, "frame_data");
507 if (!fd) return;
507 fd->moving = 1; 508 fd->moving = 1;
508 evas_pointer_canvas_xy_get(evas_object_evas_get(o), &x, &y); 509 evas_pointer_canvas_xy_get(evas_object_evas_get(o), &x, &y);
509 fd->x = x; 510 fd->x = x;
@@ -517,6 +518,7 @@ video_obj_signal_frame_move_stop_cb(void *data EINA_UNUSED, Evas_Object *o, cons
517 Frame_Data *fd; 518 Frame_Data *fd;
518 519
519 fd = evas_object_data_get(o, "frame_data"); 520 fd = evas_object_data_get(o, "frame_data");
521 if (!fd) return;
520 fd->moving = 0; 522 fd->moving = 0;
521} 523}
522 524
@@ -527,6 +529,7 @@ video_obj_signal_frame_resize_start_cb(void *data EINA_UNUSED, Evas_Object *o, c
527 Evas_Coord x, y; 529 Evas_Coord x, y;
528 530
529 fd = evas_object_data_get(o, "frame_data"); 531 fd = evas_object_data_get(o, "frame_data");
532 if (!fd) return;
530 fd->resizing = 1; 533 fd->resizing = 1;
531 evas_pointer_canvas_xy_get(evas_object_evas_get(o), &x, &y); 534 evas_pointer_canvas_xy_get(evas_object_evas_get(o), &x, &y);
532 fd->x = x; 535 fd->x = x;
@@ -540,6 +543,7 @@ video_obj_signal_frame_resize_stop_cb(void *data EINA_UNUSED, Evas_Object *o, co
540 Frame_Data *fd; 543 Frame_Data *fd;
541 544
542 fd = evas_object_data_get(o, "frame_data"); 545 fd = evas_object_data_get(o, "frame_data");
546 if (!fd) return;
543 fd->resizing = 0; 547 fd->resizing = 0;
544} 548}
545 549
@@ -549,6 +553,7 @@ video_obj_signal_frame_move_cb(void *data EINA_UNUSED, Evas_Object *o, const cha
549 Frame_Data *fd; 553 Frame_Data *fd;
550 554
551 fd = evas_object_data_get(o, "frame_data"); 555 fd = evas_object_data_get(o, "frame_data");
556 if (!fd) return;
552 if (fd->moving) 557 if (fd->moving)
553 { 558 {
554 Evas_Coord x, y, ox, oy; 559 Evas_Coord x, y, ox, oy;