[elm_conformant] Added null check before accessing smart data in _on_del and _on_cont...
authorRajesh PS <rajeshps@samsung.com>
Mon, 10 Jun 2013 11:23:20 +0000 (16:53 +0530)
committerSungho Kwak <sungho1.kwak@samsung.com>
Wed, 12 Jun 2013 05:41:14 +0000 (14:41 +0900)
[Patch2] Removed checking from _on_content_resize since that check is redundant

Change-Id: I86b6fef5fef3fc90dfe1d8759bb2f685ed673eb7

src/lib/elm_conform.c

index fa78870..5a6a6e4 100644 (file)
@@ -859,6 +859,7 @@ _on_del(void *data,
                    void *event_info __UNUSED__)
 {
    ELM_CONFORMANT_DATA_GET(data, sd);
+   EINA_SAFETY_ON_NULL_RETURN(sd);
 
    if (sd->scroller)
      {