server: fix small leak

This commit is contained in:
Wim Taymans 2012-11-20 11:24:35 +01:00
parent 989f004e24
commit 8a7197f078

View file

@ -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;
}