From b6946553f9ef8b59ebaf4c5881902768da723317 Mon Sep 17 00:00:00 2001 From: Nilesh Trimbake Date: Mon, 8 Oct 2018 19:40:28 +0530 Subject: [PATCH] Resolve Message App Crash Issue This patch resolve possible crash in message application Change-Id: Ia06d8fd664d19d5e6364f0a2ec15bc15b505c869 --- src/Common/View/src/ViewItem.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Common/View/src/ViewItem.cpp b/src/Common/View/src/ViewItem.cpp index 31499ecc..70e1f4ca 100644 --- a/src/Common/View/src/ViewItem.cpp +++ b/src/Common/View/src/ViewItem.cpp @@ -43,8 +43,9 @@ void ViewItem::destroy() void ViewItem::on_delete_cb(void *data, Evas_Object *obj, void *event_info) { - auto *self = staticCast(event_info); - self->onViewDestroyed(); + auto *self = staticCast(data); + if (self) + self->onViewDestroyed(); } Evas_Object *ViewItem::setContent(Evas_Object *content, const char *part, bool saveOldContent) -- 2.34.1