diff --git a/subprojects/gst-examples/network/http-launch/http-launch.c b/subprojects/gst-examples/network/http-launch/http-launch.c index ac795483bb..bfc664af98 100644 --- a/subprojects/gst-examples/network/http-launch/http-launch.c +++ b/subprojects/gst-examples/network/http-launch/http-launch.c @@ -76,7 +76,7 @@ remove_client (Client * client) g_object_unref (client->connection); g_byte_array_unref (client->current_message); - g_slice_free (Client, client); + g_free (client); } static void @@ -270,7 +270,7 @@ static gboolean on_new_connection (GSocketService * service, GSocketConnection * connection, GObject * source_object, gpointer user_data) { - Client *client = g_slice_new0 (Client); + Client *client = g_new0 (Client, 1); GSocketAddress *addr; GInetAddress *iaddr; gchar *ip; diff --git a/subprojects/gst-examples/webrtc/sendonly/webrtc-recvonly-h264.c b/subprojects/gst-examples/webrtc/sendonly/webrtc-recvonly-h264.c index 58dbf02798..7222ccbb91 100644 --- a/subprojects/gst-examples/webrtc/sendonly/webrtc-recvonly-h264.c +++ b/subprojects/gst-examples/webrtc/sendonly/webrtc-recvonly-h264.c @@ -317,7 +317,7 @@ create_receiver_entry (SoupWebsocketConnection * connection) GstWebRTCRTPTransceiver *trans = NULL; GstBus *bus; - receiver_entry = g_slice_alloc0 (sizeof (ReceiverEntry)); + receiver_entry = g_new0 (ReceiverEntry, 1); receiver_entry->connection = connection; g_object_ref (G_OBJECT (connection)); @@ -408,7 +408,7 @@ destroy_receiver_entry (gpointer receiver_entry_ptr) if (receiver_entry->connection != NULL) g_object_unref (G_OBJECT (receiver_entry->connection)); - g_slice_free1 (sizeof (ReceiverEntry), receiver_entry); + g_free (receiver_entry); } diff --git a/subprojects/gst-examples/webrtc/sendonly/webrtc-unidirectional-h264.c b/subprojects/gst-examples/webrtc/sendonly/webrtc-unidirectional-h264.c index 7df8bd9c74..b53719550d 100644 --- a/subprojects/gst-examples/webrtc/sendonly/webrtc-unidirectional-h264.c +++ b/subprojects/gst-examples/webrtc/sendonly/webrtc-unidirectional-h264.c @@ -231,7 +231,7 @@ create_receiver_entry (SoupWebsocketConnection * connection) GArray *transceivers; GstBus *bus; - receiver_entry = g_slice_alloc0 (sizeof (ReceiverEntry)); + receiver_entry = g_new0 (ReceiverEntry, 1); receiver_entry->connection = connection; g_object_ref (G_OBJECT (connection)); @@ -342,7 +342,7 @@ destroy_receiver_entry (gpointer receiver_entry_ptr) if (receiver_entry->connection != NULL) g_object_unref (G_OBJECT (receiver_entry->connection)); - g_slice_free1 (sizeof (ReceiverEntry), receiver_entry); + g_free (receiver_entry); }