mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 04:31:06 +00:00
server: fix small leak
This commit is contained in:
parent
989f004e24
commit
8a7197f078
1 changed files with 2 additions and 0 deletions
|
@ -204,6 +204,7 @@ gst_rtsp_server_finalize (GObject * object)
|
|||
|
||||
g_free (server->address);
|
||||
g_free (server->service);
|
||||
|
||||
if (server->socket)
|
||||
g_object_unref (server->socket);
|
||||
|
||||
|
@ -718,6 +719,7 @@ gst_rtsp_server_create_socket (GstRTSPServer * server,
|
|||
if (socket == NULL) {
|
||||
GST_DEBUG_OBJECT (server, "failed to make socket (%s), try next",
|
||||
sock_error->message);
|
||||
g_object_unref (sockaddr);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue