diff --git a/webrtc/sendrecv/gst/webrtc-sendrecv.c b/webrtc/sendrecv/gst/webrtc-sendrecv.c index 9f24a29b1f..68469d5183 100644 --- a/webrtc/sendrecv/gst/webrtc-sendrecv.c +++ b/webrtc/sendrecv/gst/webrtc-sendrecv.c @@ -288,9 +288,7 @@ on_negotiation_needed (GstElement * element, gpointer user_data) app_state = PEER_CALL_NEGOTIATING; if (remote_is_offerer || our_id) { - gchar *msg = g_strdup_printf ("OFFER_REQUEST"); - soup_websocket_connection_send_text (ws_conn, msg); - g_free (msg); + soup_websocket_connection_send_text (ws_conn, "OFFER_REQUEST"); } else { GstPromise *promise; promise =