+2005-08-08 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
+
+ * gst/base/gstbasetransform.c: (gst_base_transform_buffer_alloc):
+ Fix a pretty good memleak.
+
2005-08-08 Tim-Philipp Müller <tim at centricular dot net>
* gst/gstiterator.h:
goto unknown_size;
}
+ if (*buf) {
+ gst_buffer_unref (*buf);
+ }
*buf = gst_buffer_new_and_alloc (got_size);
gst_buffer_set_caps (*buf, sinkcaps);
GST_BUFFER_OFFSET (*buf) = offset;
not_configured:
{
/* let the default allocator handle it */
- *buf = NULL;
+ if (*buf) {
+ gst_buffer_unref (*buf);
+ *buf = NULL;
+ }
gst_object_unref (trans);
return GST_FLOW_OK;
}
unknown_size:
{
/* let the default allocator handle it */
- *buf = NULL;
+ if (*buf) {
+ gst_buffer_unref (*buf);
+ *buf = NULL;
+ }
gst_object_unref (trans);
return GST_FLOW_OK;
}
goto unknown_size;
}
+ if (*buf) {
+ gst_buffer_unref (*buf);
+ }
*buf = gst_buffer_new_and_alloc (got_size);
gst_buffer_set_caps (*buf, sinkcaps);
GST_BUFFER_OFFSET (*buf) = offset;
not_configured:
{
/* let the default allocator handle it */
- *buf = NULL;
+ if (*buf) {
+ gst_buffer_unref (*buf);
+ *buf = NULL;
+ }
gst_object_unref (trans);
return GST_FLOW_OK;
}
unknown_size:
{
/* let the default allocator handle it */
- *buf = NULL;
+ if (*buf) {
+ gst_buffer_unref (*buf);
+ *buf = NULL;
+ }
gst_object_unref (trans);
return GST_FLOW_OK;
}