fix leaks when looking for links

This commit is contained in:
Boris Faure 2019-09-04 00:28:21 +02:00
parent 421e40dbfc
commit f01c312f01
2 changed files with 1 additions and 1 deletions

View File

@ -43,6 +43,7 @@ ty_sb_prepend(struct ty_sb *sb, const char *s, size_t len)
return -1;
memcpy(new_buf + new_gap, sb->buf, sb->len);
free(sb->buf - sb->gap);
sb->buf = new_buf + new_gap;
sb->gap = new_gap;
sb->alloc = new_alloc;

View File

@ -2386,7 +2386,6 @@ _smart_mouseover_apply(Termio *sd)
if (sd->link.string)
eina_stringshare_del(sd->link.string);
sd->link.string = eina_stringshare_add(s);
s = NULL;
if ((x1 == sd->link.x1) && (y1 == sd->link.y1) &&
(x2 == sd->link.x2) && (y2 == sd->link.y2))