elementary/naviframe - no need to allocate item pair when content is NULL
authorChunEon Park <chuneon.park@samsung.com>
Mon, 5 Dec 2011 07:49:47 +0000 (16:49 +0900)
committerChunEon Park <chuneon.park@samsung.com>
Mon, 5 Dec 2011 07:49:47 +0000 (16:49 +0900)
rev. 65889

src/lib/elc_naviframe.c

index 0da2f53..fbb6d7f 100644 (file)
@@ -615,6 +615,8 @@ _title_content_set(Elm_Naviframe_Item *it,
      }
    else
      {
+        if (!content) return;
+
         pair = ELM_NEW(Elm_Naviframe_Content_Item_Pair);
         if (!pair)
           {