Commit 88c849be authored by Youness Alaoui's avatar Youness Alaoui

use g_slice_new0 instead of g_slice_new

parent 16c42171
......@@ -213,7 +213,7 @@ add_to_be_sent (NiceSocket *sock, const NiceAddress *to,
if (len <= 0)
return;
tbs = g_slice_new (struct to_be_sent);
tbs = g_slice_new0 (struct to_be_sent);
tbs->buf = g_memdup (buf, len);
tbs->length = len;
tbs->to = *to;
......
......@@ -335,7 +335,7 @@ add_to_be_sent (NiceSocket *sock, const gchar *buf, guint len, gboolean head)
if (len <= 0)
return;
tbs = g_slice_new (struct to_be_sent);
tbs = g_slice_new0 (struct to_be_sent);
tbs->buf = g_memdup (buf, len);
tbs->length = len;
if (head)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment