projects
/
profile
/
ivi
/
edje.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
be772f7
)
Edje: Edje_Text: Don't segfault on _edje_text_part_on_del if there is
author
devilhorns
<devilhorns>
Sat, 9 Apr 2011 05:48:47 +0000
(
05:48
+0000)
committer
devilhorns
<devilhorns@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sat, 9 Apr 2011 05:48:47 +0000
(
05:48
+0000)
not 'part'
Don't ask me how I found this one, but it happened :/ so trap for
valid part before trying to use it.
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@58516
7cbeb6ba
-43b4-40fd-8cce-
4c39aea84d33
src/lib/edje_text.c
patch
|
blob
|
history
diff --git
a/src/lib/edje_text.c
b/src/lib/edje_text.c
index
ba9ecb8
..
d067d6e
100644
(file)
--- a/
src/lib/edje_text.c
+++ b/
src/lib/edje_text.c
@@
-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 ;