mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
gst-libs/gst/rtp/gstbasertpaudiopayload.c: Fix potential leaks.
Original commit message from CVS: * gst-libs/gst/rtp/gstbasertpaudiopayload.c: (gst_base_rtp_audio_payload_handle_frame_based_buffer), (gst_base_rtp_audio_payload_handle_sample_based_buffer): Fix potential leaks. * gst-libs/gst/rtp/gstbasertppayload.c: (gst_basertppayload_chain): Fix leak when there is no function configured.
This commit is contained in:
parent
db47065810
commit
d8c28a99c8
4 changed files with 14 additions and 5 deletions
10
ChangeLog
10
ChangeLog
|
@ -1,3 +1,13 @@
|
|||
2008-02-12 Wim Taymans <wim.taymans@collabora.co.uk>
|
||||
|
||||
* gst-libs/gst/rtp/gstbasertpaudiopayload.c:
|
||||
(gst_base_rtp_audio_payload_handle_frame_based_buffer),
|
||||
(gst_base_rtp_audio_payload_handle_sample_based_buffer):
|
||||
Fix potential leaks.
|
||||
|
||||
* gst-libs/gst/rtp/gstbasertppayload.c: (gst_basertppayload_chain):
|
||||
Fix leak when there is no function configured.
|
||||
|
||||
2008-02-12 Sebastian Dröge <slomo@circular-chaos.org>
|
||||
|
||||
* sys/v4l/v4lsrc_calls.c: (gst_v4lsrc_buffer_class_init),
|
||||
|
|
2
common
2
common
|
@ -1 +1 @@
|
|||
Subproject commit 05a617c9043ddb78f8578195b18c166d7e1d4c2e
|
||||
Subproject commit 2a19465fdb43a75f4d32950fd2beb1beb950eec2
|
|
@ -412,9 +412,8 @@ gst_base_rtp_audio_payload_handle_frame_based_buffer (GstBaseRTPPayload *
|
|||
buf = gst_buffer_create_sub (buffer,
|
||||
GST_BUFFER_SIZE (buffer) - available, available);
|
||||
gst_adapter_push (basertpaudiopayload->priv->adapter, buf);
|
||||
} else {
|
||||
gst_buffer_unref (buffer);
|
||||
}
|
||||
gst_buffer_unref (buffer);
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
@ -542,9 +541,8 @@ gst_base_rtp_audio_payload_handle_sample_based_buffer (GstBaseRTPPayload *
|
|||
buf = gst_buffer_create_sub (buffer,
|
||||
GST_BUFFER_SIZE (buffer) - available, available);
|
||||
gst_adapter_push (basertpaudiopayload->priv->adapter, buf);
|
||||
} else {
|
||||
gst_buffer_unref (buffer);
|
||||
}
|
||||
gst_buffer_unref (buffer);
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
|
|
@ -406,6 +406,7 @@ no_function:
|
|||
GST_ELEMENT_ERROR (basertppayload, STREAM, NOT_IMPLEMENTED, (NULL),
|
||||
("subclass did not implement handle_buffer function"));
|
||||
gst_object_unref (basertppayload);
|
||||
gst_buffer_unref (buffer);
|
||||
return GST_FLOW_ERROR;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue