segv nuked thansk to scahiel and a leak plugged thansk to valgrind.

SVN revision: 37261
This commit is contained in:
Carsten Haitzler 2008-10-28 04:01:10 +00:00
parent 8325ae6ba3
commit e7b5030226
1 changed files with 2 additions and 0 deletions

View File

@ -4360,6 +4360,7 @@ evas_textblock_cursor_range_text_get(const Evas_Textblock_Cursor *cur1, const Ev
ps = n->text;
pe = ps + strlen(ps);
}
p = ps;
while (p < pe)
{
const char *escape;
@ -4715,6 +4716,7 @@ evas_textblock_cursor_range_geometry_get(const Evas_Textblock_Cursor *cur1, cons
line = evas_textblock_cursor_char_geometry_get(cur2, &cx, &cy, &cw, &ch);
if (line < 0)
{
free(tr);
while (rects)
{
free(rects->data);