[elm_navigationbar.c] Fixed accessing to freed memory.
authorDaniel Juyung Seo <juyung.seo@samsung.com>
Thu, 4 Nov 2010 01:29:04 +0000 (10:29 +0900)
committerDaniel Juyung Seo <juyung.seo@samsung.com>
Thu, 4 Nov 2010 01:29:04 +0000 (10:29 +0900)
src/lib/elm_navigationbar.c

index f320f8f..56cc4bf 100644 (file)
@@ -620,10 +620,10 @@ elm_navigationbar_push(Evas_Object *obj,
                cb->first_page = EINA_TRUE;
        }
        _transition_complete_cb(cb);
-       free(cb);
        //push content to pager
        if(!cb->first_page)
                wd->pushed = 1;
+       free(cb);
        elm_pager_content_push(wd->pager, it->content); 
        //push item into the stack. it should be always the tail
        if (!_check_item_is_added(obj, content))