diff --git a/src/bin/sb.c b/src/bin/sb.c index b2bffa5..a0dd9e8 100644 --- a/src/bin/sb.c +++ b/src/bin/sb.c @@ -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; diff --git a/src/bin/termio.c b/src/bin/termio.c index b8c4246..dea782e 100644 --- a/src/bin/termio.c +++ b/src/bin/termio.c @@ -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))