Edje: Edje_Text: Don't segfault on _edje_text_part_on_del if there is

not 'part'

Don't ask me how I found this one, but it happened :/ so trap for
valid part before trying to use it.



SVN revision: 58516
This commit is contained in:
Christopher Michael 2011-04-09 05:48:47 +00:00
parent 6b3e820f35
commit 7c682a3ee2
1 changed files with 1 additions and 0 deletions

View File

@ -60,6 +60,7 @@ _edje_text_part_on_del(Edje *ed, Edje_Part *pt)
Edje_Part_Description_Text *desc;
unsigned int i;
if (!pt) return;
if (pt->type != EDJE_PART_TYPE_TEXT
&& pt->type != EDJE_PART_TYPE_TEXTBLOCK)
return ;