After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 708619 - client object can be used after it has been freed
client object can be used after it has been freed
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-rtsp-server
git master
Other Linux
: Normal normal
: 1.2.3
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2013-09-23 12:38 UTC by Jonas Holmberg
Modified: 2014-02-25 22:28 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
emit client-connected signal earlier (1.63 KB, patch)
2013-09-23 12:47 UTC, Jonas Holmberg
none Details | Review

Description Jonas Holmberg 2013-09-23 12:38:53 UTC
The client-connected signal can be emitted after the client object has
been freed. This can happen if the client disconnects before the signal has been emitted.
Comment 1 Jonas Holmberg 2013-09-23 12:47:39 UTC
Created attachment 255559 [details] [review]
emit client-connected signal earlier

Emit client-connected before the client ref is given to a GSource,
otherwise client-connected can be emitted after the client object has
been freed.
Comment 2 Wim Taymans 2013-09-24 15:39:20 UTC
commit eb03b5c17281b06969fd352cb32bf68e35cf015c
Author: Jonas Holmberg <jonashg@axis.com>
Date:   Mon Sep 23 14:28:04 2013 +0200

    server: Emit client-connected signal earlier
    
    Emit client-connected before the client ref is given to a GSource,
    otherwise client-connected can be emitted after the client object has
    been freed.