diff options
author | ChunEon Park <hermet@hermet.pe.kr> | 2012-05-14 05:22:59 +0000 |
---|---|---|
committer | Daniel Willmann <d.willmann@samsung.com> | 2013-02-15 14:26:39 +0000 |
commit | 47ae2c446ee4b00c55714362042438ac4219d965 (patch) | |
tree | 2a869ba476e55bff62d036ace0fafac1b33f67d3 | |
parent | 9e7534931c3d85d1cdf325b811b06a3e328e7469 (diff) | |
download | elementary-47ae2c446ee4b00c55714362042438ac4219d965.tar.gz |
elementary/menu - backport 70982
SVN revision: 70984
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | src/lib/elm_menu.c | 6 |
2 files changed, 11 insertions, 1 deletions
@@ -32,4 +32,10 @@ naviframe. 2012-05-13 Dave Andreoli + * Fileselector: honor folder_only when using EIO (backport 70965) + +2012-05-14 Shinwoo Kim + + * menu: remove crash issue when no-parent item is passed to the + elm_menu_item_separator_add() diff --git a/src/lib/elm_menu.c b/src/lib/elm_menu.c index 0cb0da06a..aa8cd81fb 100644 --- a/src/lib/elm_menu.c +++ b/src/lib/elm_menu.c @@ -789,7 +789,11 @@ elm_menu_item_separator_add(Evas_Object *obj, Elm_Object_Item *parent) /* don't add a separator as the first item */ if (!wd->items) return NULL; /* don't allow adding more than one separator in a row */ - if (p_item) subitem = eina_list_last(p_item->submenu.items)->data; + if (p_item) + { + if (!p_item->submenu.items) return NULL; + subitem = eina_list_last(p_item->submenu.items)->data; + } else subitem = eina_list_last(wd->items)->data; if (subitem->separator) return NULL; |