mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-16 19:25:18 +00:00
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
1 changed files with 2 additions and 2 deletions
|
@ -474,7 +474,7 @@ gst_udp_client_new (GstMultiUDPSink * sink, const gchar * host, gint port)
|
|||
}
|
||||
#endif
|
||||
|
||||
client = g_slice_new0 (GstUDPClient);
|
||||
client = g_new0 (GstUDPClient, 1);
|
||||
client->ref_count = 1;
|
||||
client->add_count = 0;
|
||||
client->host = g_strdup (host);
|
||||
|
@ -499,7 +499,7 @@ gst_udp_client_unref (GstUDPClient * client)
|
|||
if (--client->ref_count == 0) {
|
||||
g_object_unref (client->addr);
|
||||
g_free (client->host);
|
||||
g_slice_free (GstUDPClient, client);
|
||||
g_free (client);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue