Fix wrong memory allocation 46/129546/1 accepted/tizen/3.0/common/20170518.163459 accepted/tizen/3.0/ivi/20170518.011151 accepted/tizen/3.0/mobile/20170518.011139 accepted/tizen/3.0/tv/20170518.011143 accepted/tizen/3.0/wearable/20170518.011147 submit/tizen_3.0/20170517.020821
authorHwankyu Jhun <h.jhun@samsung.com>
Wed, 17 May 2017 01:15:52 +0000 (10:15 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Wed, 17 May 2017 01:43:07 +0000 (10:43 +0900)
The size of the pending item handle should be 12 bytes.

Change-Id: I0f7b8dcef0210459fc4d94154f23d35c27018416
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
widget_viewer_evas/src/widget_viewer_evas.c

index b46f609..593eb90 100644 (file)
@@ -200,7 +200,7 @@ static struct pending_item *__create_pending_item(const char *event,
 {
        struct pending_item *item;
 
-       item = calloc(1, sizeof(item));
+       item = calloc(1, sizeof(struct pending_item));
        if (!item) {
                LOGE("Out of memory");
                return NULL;