mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-05 15:08:48 +00:00
check/Makefile.am: Enable valgrind check.
Original commit message from CVS: * check/Makefile.am: Enable valgrind check. * gst/elements/gstfakesrc.c: (gst_fake_src_alloc_parent), (gst_fake_src_alloc_buffer): Fix memleak.
This commit is contained in:
parent
f2646a0fc9
commit
578f2ae633
5 changed files with 17 additions and 2 deletions
|
@ -1,3 +1,12 @@
|
||||||
|
2005-11-16 Wim Taymans <wim@fluendo.com>
|
||||||
|
|
||||||
|
* check/Makefile.am:
|
||||||
|
Enable valgrind check.
|
||||||
|
|
||||||
|
* gst/elements/gstfakesrc.c: (gst_fake_src_alloc_parent),
|
||||||
|
(gst_fake_src_alloc_buffer):
|
||||||
|
Fix memleak.
|
||||||
|
|
||||||
2005-11-16 Wim Taymans <wim@fluendo.com>
|
2005-11-16 Wim Taymans <wim@fluendo.com>
|
||||||
|
|
||||||
* gst/net/gstnettimeprovider.c: (gst_net_time_provider_finalize):
|
* gst/net/gstnettimeprovider.c: (gst_net_time_provider_finalize):
|
||||||
|
|
|
@ -86,7 +86,6 @@ net_gstnettimeprovider_LDADD = \
|
||||||
# valgrind testing
|
# valgrind testing
|
||||||
# these just need valgrind fixing, period
|
# these just need valgrind fixing, period
|
||||||
VALGRIND_TO_FIX = \
|
VALGRIND_TO_FIX = \
|
||||||
elements/fakesrc \
|
|
||||||
gst/gstevent \
|
gst/gstevent \
|
||||||
gst-libs/controller \
|
gst-libs/controller \
|
||||||
pipelines/simple_launch_lines
|
pipelines/simple_launch_lines
|
||||||
|
|
|
@ -382,6 +382,7 @@ gst_fake_src_alloc_parent (GstFakeSrc * src)
|
||||||
|
|
||||||
buf = gst_buffer_new ();
|
buf = gst_buffer_new ();
|
||||||
GST_BUFFER_DATA (buf) = g_malloc (src->parentsize);
|
GST_BUFFER_DATA (buf) = g_malloc (src->parentsize);
|
||||||
|
GST_BUFFER_MALLOCDATA (buf) = GST_BUFFER_DATA (buf);
|
||||||
GST_BUFFER_SIZE (buf) = src->parentsize;
|
GST_BUFFER_SIZE (buf) = src->parentsize;
|
||||||
|
|
||||||
src->parent = buf;
|
src->parent = buf;
|
||||||
|
@ -586,15 +587,18 @@ gst_fake_src_alloc_buffer (GstFakeSrc * src, guint size)
|
||||||
switch (src->filltype) {
|
switch (src->filltype) {
|
||||||
case FAKE_SRC_FILLTYPE_NOTHING:
|
case FAKE_SRC_FILLTYPE_NOTHING:
|
||||||
GST_BUFFER_DATA (buf) = g_malloc (size);
|
GST_BUFFER_DATA (buf) = g_malloc (size);
|
||||||
|
GST_BUFFER_MALLOCDATA (buf) = GST_BUFFER_DATA (buf);
|
||||||
break;
|
break;
|
||||||
case FAKE_SRC_FILLTYPE_NULL:
|
case FAKE_SRC_FILLTYPE_NULL:
|
||||||
GST_BUFFER_DATA (buf) = g_malloc0 (size);
|
GST_BUFFER_DATA (buf) = g_malloc0 (size);
|
||||||
|
GST_BUFFER_MALLOCDATA (buf) = GST_BUFFER_DATA (buf);
|
||||||
break;
|
break;
|
||||||
case FAKE_SRC_FILLTYPE_RANDOM:
|
case FAKE_SRC_FILLTYPE_RANDOM:
|
||||||
case FAKE_SRC_FILLTYPE_PATTERN:
|
case FAKE_SRC_FILLTYPE_PATTERN:
|
||||||
case FAKE_SRC_FILLTYPE_PATTERN_CONT:
|
case FAKE_SRC_FILLTYPE_PATTERN_CONT:
|
||||||
default:
|
default:
|
||||||
GST_BUFFER_DATA (buf) = g_malloc (size);
|
GST_BUFFER_DATA (buf) = g_malloc (size);
|
||||||
|
GST_BUFFER_MALLOCDATA (buf) = GST_BUFFER_DATA (buf);
|
||||||
gst_fake_src_prepare_buffer (src, buf);
|
gst_fake_src_prepare_buffer (src, buf);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
@ -382,6 +382,7 @@ gst_fake_src_alloc_parent (GstFakeSrc * src)
|
||||||
|
|
||||||
buf = gst_buffer_new ();
|
buf = gst_buffer_new ();
|
||||||
GST_BUFFER_DATA (buf) = g_malloc (src->parentsize);
|
GST_BUFFER_DATA (buf) = g_malloc (src->parentsize);
|
||||||
|
GST_BUFFER_MALLOCDATA (buf) = GST_BUFFER_DATA (buf);
|
||||||
GST_BUFFER_SIZE (buf) = src->parentsize;
|
GST_BUFFER_SIZE (buf) = src->parentsize;
|
||||||
|
|
||||||
src->parent = buf;
|
src->parent = buf;
|
||||||
|
@ -586,15 +587,18 @@ gst_fake_src_alloc_buffer (GstFakeSrc * src, guint size)
|
||||||
switch (src->filltype) {
|
switch (src->filltype) {
|
||||||
case FAKE_SRC_FILLTYPE_NOTHING:
|
case FAKE_SRC_FILLTYPE_NOTHING:
|
||||||
GST_BUFFER_DATA (buf) = g_malloc (size);
|
GST_BUFFER_DATA (buf) = g_malloc (size);
|
||||||
|
GST_BUFFER_MALLOCDATA (buf) = GST_BUFFER_DATA (buf);
|
||||||
break;
|
break;
|
||||||
case FAKE_SRC_FILLTYPE_NULL:
|
case FAKE_SRC_FILLTYPE_NULL:
|
||||||
GST_BUFFER_DATA (buf) = g_malloc0 (size);
|
GST_BUFFER_DATA (buf) = g_malloc0 (size);
|
||||||
|
GST_BUFFER_MALLOCDATA (buf) = GST_BUFFER_DATA (buf);
|
||||||
break;
|
break;
|
||||||
case FAKE_SRC_FILLTYPE_RANDOM:
|
case FAKE_SRC_FILLTYPE_RANDOM:
|
||||||
case FAKE_SRC_FILLTYPE_PATTERN:
|
case FAKE_SRC_FILLTYPE_PATTERN:
|
||||||
case FAKE_SRC_FILLTYPE_PATTERN_CONT:
|
case FAKE_SRC_FILLTYPE_PATTERN_CONT:
|
||||||
default:
|
default:
|
||||||
GST_BUFFER_DATA (buf) = g_malloc (size);
|
GST_BUFFER_DATA (buf) = g_malloc (size);
|
||||||
|
GST_BUFFER_MALLOCDATA (buf) = GST_BUFFER_DATA (buf);
|
||||||
gst_fake_src_prepare_buffer (src, buf);
|
gst_fake_src_prepare_buffer (src, buf);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
@ -86,7 +86,6 @@ net_gstnettimeprovider_LDADD = \
|
||||||
# valgrind testing
|
# valgrind testing
|
||||||
# these just need valgrind fixing, period
|
# these just need valgrind fixing, period
|
||||||
VALGRIND_TO_FIX = \
|
VALGRIND_TO_FIX = \
|
||||||
elements/fakesrc \
|
|
||||||
gst/gstevent \
|
gst/gstevent \
|
||||||
gst-libs/controller \
|
gst-libs/controller \
|
||||||
pipelines/simple_launch_lines
|
pipelines/simple_launch_lines
|
||||||
|
|
Loading…
Reference in a new issue