For type checking whether 'address' is 'G_TYPE_INET_SOCKET_ADDRESS' type, it is used 'G_IS_INET_SOCKET_aDDRESS' api.
And in case of taking false, 'address' is not null because it is passed null checking.
So i added 'g_object_unref' in else statement.
Change-Id: I49f8a3d6d7c320d0d49ef073088690a4dd026d29
Signed-off-by: Hyunsoo Park <hance.park@samsung.com>
} else {
priv->is_ipv6 = g_socket_get_family (read_socket) == G_SOCKET_FAMILY_IPV6;
priv->server_ip = g_strdup ("unknown");
+ g_object_unref (address);
}
GST_INFO ("client %p connected to server ip %s, ipv6 = %d", client,