elm/naviframe: Fix potential deref of freed memory.

We should not free it and then access the same data again on line below.

SVN revision: 80862
This commit is contained in:
Stefan Schmidt 2012-12-13 14:17:29 +00:00
parent 1bab154972
commit 0cc6bf40f8
1 changed files with 1 additions and 1 deletions

View File

@ -675,10 +675,10 @@ _title_content_set(Elm_Naviframe_Item *it,
eina_stringshare_del(pair->part);
it->content_list = eina_inlist_remove(it->content_list,
EINA_INLIST_GET(pair));
free(pair);
evas_object_event_callback_del(pair->content,
EVAS_CALLBACK_DEL,
_title_content_del);
free(pair);
break;
}
}