diff options
| author | 2025-12-18 08:09:10 +0100 | |
|---|---|---|
| committer | 2025-12-18 08:09:10 +0100 | |
| commit | 7c065cbc9879582985cef3d3ad8b2ae197b8b851 (patch) | |
| tree | 568ca6194ba6071c1f1a0ab20347e4852cb122b5 /data.c | |
| parent | Added emoji reactions (contributed by violette). (diff) | |
| download | snac2-7c065cbc9879582985cef3d3ad8b2ae197b8b851.tar.gz snac2-7c065cbc9879582985cef3d3ad8b2ae197b8b851.tar.xz snac2-7c065cbc9879582985cef3d3ad8b2ae197b8b851.zip | |
Fixed some xs_dup() leaks.
Diffstat (limited to '')
| -rw-r--r-- | data.c | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -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 | ||