summaryrefslogtreecommitdiff
path: root/src/tests/emotion
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2013-12-11 18:22:59 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2013-12-11 18:22:59 +0900
commitcd208fbeef8fc45b282fde7c65b3d90123e32f9b (patch)
tree8cebb2c62071177e20eb1b7ba01e6904ba62c7aa /src/tests/emotion
parentf779c49c89875115a0b715a05c524bbb3ed6556c (diff)
emotion - test - exit if calloc fails
spotted this while looking at coverty issue. likely analysis tools will complain.
Diffstat (limited to 'src/tests/emotion')
-rw-r--r--src/tests/emotion/emotion_test_main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tests/emotion/emotion_test_main.c b/src/tests/emotion/emotion_test_main.c
index 7fe801e0f2..1a9cb24a93 100644
--- a/src/tests/emotion/emotion_test_main.c
+++ b/src/tests/emotion/emotion_test_main.c
@@ -623,7 +623,8 @@ init_video_object(const char *module_filename, const char *filename)
623 w = iw; h = ih; 623 w = iw; h = ih;
624 624
625 fd = calloc(1, sizeof(Frame_Data)); 625 fd = calloc(1, sizeof(Frame_Data));
626 626 if (!fd) exit(1);
627
627 oe = edje_object_add(evas); 628 oe = edje_object_add(evas);
628 evas_object_event_callback_add(oe, EVAS_CALLBACK_FREE, _oe_free_cb, NULL); 629 evas_object_event_callback_add(oe, EVAS_CALLBACK_FREE, _oe_free_cb, NULL);
629 evas_object_data_set(oe, "frame_data", fd); 630 evas_object_data_set(oe, "frame_data", fd);