aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2019-09-04 00:28:21 +0200
committerBoris Faure <billiob@gmail.com>2019-09-04 00:28:21 +0200
commitf01c312f015d5744fbe546ea7601f0f1de93d40b (patch)
tree3c78f9deafa4b10eaa711419a1988501ce7b6af3
parenttermio: evas_object_focus_get() agains obj is not valid (diff)
downloadterminology-1.5.tar.gz
fix leaks when looking for linksterminology-1.5
-rw-r--r--src/bin/sb.c1
-rw-r--r--src/bin/termio.c1
2 files changed, 1 insertions, 1 deletions
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))