[gstreamer-bugs] [Bug 591440] New: rtpdtmfsrc event cleanup
GStreamer (bugzilla.gnome.org)
bugzilla-daemon at bugzilla.gnome.org
Tue Aug 11 05:23:42 PDT 2009
If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
http://bugzilla.gnome.org/show_bug.cgi?id=591440
GStreamer | gst-plugins-bad | Ver: git
Summary: rtpdtmfsrc event cleanup
Product: GStreamer
Version: git
Platform: Other
OS/Version: Linux
Status: UNCONFIRMED
Severity: normal
Priority: Normal
Component: gst-plugins-bad
AssignedTo: gstreamer-bugs at lists.sourceforge.net
ReportedBy: spglegle at yahoo.fr
QAContact: gstreamer-bugs at lists.sourceforge.net
GNOME version: Unspecified
GNOME milestone: Unspecified
cleanup events on finalize to avoid memleaks, sorry for the dirty format of
this patch.
static void
gst_rtp_dtmf_src_finalize (GObject * object)
{
GstRTPDTMFSrc *dtmfsrc;
+ GstRTPDTMFSrcEvent *event;
dtmfsrc = GST_RTP_DTMF_SRC (object);
+ /* Flush queue */
+ while ((event = g_async_queue_try_pop((dtmfsrc->event_queue)))) {
+ if (event->payload) {
+ g_free(event->payload);
+ event->payload = NULL;
+ }
+ g_free(event) ;
+ }
if (dtmfsrc->event_queue) {
g_async_queue_unref (dtmfsrc->event_queue);
dtmfsrc->event_queue = NULL;
}
G_OBJECT_CLASS (parent_class)->finalize (object);
}
--
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.
You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=591440.
More information about the Gstreamer-bugs
mailing list