From: Nilesh Trimbake Date: Mon, 8 Oct 2018 14:10:28 +0000 (+0530) Subject: Resolve Message App Crash Issue X-Git-Tag: submit/tizen/20181008.232441^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b6946553f9ef8b59ebaf4c5881902768da723317;p=profile%2Fmobile%2Fapps%2Fnative%2Fmessage.git Resolve Message App Crash Issue This patch resolve possible crash in message application Change-Id: Ia06d8fd664d19d5e6364f0a2ec15bc15b505c869 --- 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)