summaryrefslogtreecommitdiff
path: root/data.c
diff options
context:
space:
mode:
authorGravatar grunfink2025-12-18 08:09:10 +0100
committerGravatar grunfink2025-12-18 08:09:10 +0100
commit7c065cbc9879582985cef3d3ad8b2ae197b8b851 (patch)
tree568ca6194ba6071c1f1a0ab20347e4852cb122b5 /data.c
parentAdded emoji reactions (contributed by violette). (diff)
downloadsnac2-7c065cbc9879582985cef3d3ad8b2ae197b8b851.tar.gz
snac2-7c065cbc9879582985cef3d3ad8b2ae197b8b851.tar.xz
snac2-7c065cbc9879582985cef3d3ad8b2ae197b8b851.zip
Fixed some xs_dup() leaks.
Diffstat (limited to '')
-rw-r--r--data.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/data.c b/data.c
index 07eea3c..bbe92b8 100644
--- a/data.c
+++ b/data.c
@@ -1599,7 +1599,7 @@ int timeline_admire(snac *snac, const char *id,
1599 /* use utf <3 as a like, as it is ugly */ 1599 /* use utf <3 as a like, as it is ugly */
1600 if (type && xs_match(type, "Like|EmojiReact|Emoji") && 1600 if (type && xs_match(type, "Like|EmojiReact|Emoji") &&
1601 content && strcmp(content, "❤") != 0) { 1601 content && strcmp(content, "❤") != 0) {
1602 ret = timeline_emoji_react(xs_dup(snac->actor), id, xs_dup(msg)); 1602 ret = timeline_emoji_react(snac->actor, id, xs_dup(msg));
1603 snac_debug(snac, 1, xs_fmt("timeline_emoji_react %s", id)); 1603 snac_debug(snac, 1, xs_fmt("timeline_emoji_react %s", id));
1604 } 1604 }
1605 1605