mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-14 05:12:09 +00:00
client: fix refcounting crasher
Don't need to remove the weak refs in the finalize methods, they are already removed in the dispose. Don't register the callback with a DestroyNofity.
This commit is contained in:
parent
0b8ffbbb5c
commit
47c822bdf3
1 changed files with 0 additions and 3 deletions
|
@ -80,12 +80,9 @@ static void
|
|||
gst_rtsp_client_finalize (GObject * obj)
|
||||
{
|
||||
GstRTSPClient *client = GST_RTSP_CLIENT (obj);
|
||||
GList *walk;
|
||||
|
||||
g_message ("finalize client %p", client);
|
||||
|
||||
for (walk = client->sessions; walk; walk = g_list_next (walk))
|
||||
g_object_weak_unref (G_OBJECT (walk->data), (GWeakNotify) client_session_finalized, client);
|
||||
g_list_free (client->sessions);
|
||||
|
||||
gst_rtsp_connection_free (client->connection);
|
||||
|
|
Loading…
Reference in a new issue