summaryrefslogtreecommitdiff
path: root/legacy/edje/src/lib/edje_text.c
diff options
context:
space:
mode:
authorChristopher Michael <cpmichael1@comcast.net>2011-04-09 05:48:47 +0000
committerChristopher Michael <cpmichael1@comcast.net>2011-04-09 05:48:47 +0000
commit7c682a3ee283d09c6791658fe7e4ac9c22cf00e0 (patch)
treea593e3f3bebddcf1efdc7288c48d7fbb64324ef3 /legacy/edje/src/lib/edje_text.c
parent6b3e820f35719b11fb8723f40b9e8e03a6fd6189 (diff)
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
Diffstat (limited to 'legacy/edje/src/lib/edje_text.c')
-rw-r--r--legacy/edje/src/lib/edje_text.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/legacy/edje/src/lib/edje_text.c b/legacy/edje/src/lib/edje_text.c
index ba9ecb8..d067d6e 100644
--- a/legacy/edje/src/lib/edje_text.c
+++ b/legacy/edje/src/lib/edje_text.c
@@ -60,6 +60,7 @@ _edje_text_part_on_del(Edje *ed, Edje_Part *pt)
60 Edje_Part_Description_Text *desc; 60 Edje_Part_Description_Text *desc;
61 unsigned int i; 61 unsigned int i;
62 62
63 if (!pt) return;
63 if (pt->type != EDJE_PART_TYPE_TEXT 64 if (pt->type != EDJE_PART_TYPE_TEXT
64 && pt->type != EDJE_PART_TYPE_TEXTBLOCK) 65 && pt->type != EDJE_PART_TYPE_TEXTBLOCK)
65 return ; 66 return ;