mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-12-04 22:11:52 +00:00
Fix #928. Fix memory leak, mea culpa.
This commit is contained in:
1 parent
b66edd372e
commit
ccf49aa48d
1 file changed
+3
@@ -300,7 +300,10 @@ scrollback_load (session *sess)
|
|||||||
|
|
||||||
/* If nothing but funny trailing matter e.g. 0x0d or 0x0d0a, toss it */
|
/* If nothing but funny trailing matter e.g. 0x0d or 0x0d0a, toss it */
|
||||||
if (n_bytes >= 1 && buf[0] == 0x0d)
|
if (n_bytes >= 1 && buf[0] == 0x0d)
|
||||||
|
{
|
||||||
|
g_free (buf);
|
||||||
continue;
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
n_bytes--;
|
n_bytes--;
|
||||||
buf_tmp = buf;
|
buf_tmp = buf;
|
||||||
|
|||||||
Reference in new issue
Block a user