multiudpsink: drop use of GSlice
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3695>
This commit is contained in:
parent
8222b97331
commit
fc82621e09
@ -474,7 +474,7 @@ gst_udp_client_new (GstMultiUDPSink * sink, const gchar * host, gint port)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
client = g_slice_new0 (GstUDPClient);
|
client = g_new0 (GstUDPClient, 1);
|
||||||
client->ref_count = 1;
|
client->ref_count = 1;
|
||||||
client->add_count = 0;
|
client->add_count = 0;
|
||||||
client->host = g_strdup (host);
|
client->host = g_strdup (host);
|
||||||
@ -499,7 +499,7 @@ gst_udp_client_unref (GstUDPClient * client)
|
|||||||
if (--client->ref_count == 0) {
|
if (--client->ref_count == 0) {
|
||||||
g_object_unref (client->addr);
|
g_object_unref (client->addr);
|
||||||
g_free (client->host);
|
g_free (client->host);
|
||||||
g_slice_free (GstUDPClient, client);
|
g_free (client);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user