summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Kost <ensonic@users.sf.net>2011-03-02 11:00:31 (GMT)
committerStefan Kost <ensonic@users.sf.net>2011-03-02 11:01:45 (GMT)
commit3ec3bed497b488364726c87e522c05b846ed4e70 (patch)
tree0af3d7ac897f9cdf174ce1c09b5822c2b458be3b
parent7bc3344131a307a4da3b0f65c1d6ca6968226f6e (diff)
monoscope: don't leak the monoscope_state data
The monoscope_close() implementation was empty.
-rw-r--r--gst/monoscope/monoscope.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/gst/monoscope/monoscope.c b/gst/monoscope/monoscope.c
index e6e4346..98822d3 100644
--- a/gst/monoscope/monoscope.c
+++ b/gst/monoscope/monoscope.c
@@ -73,8 +73,15 @@ monoscope_init (guint32 resx, guint32 resy)
return stateptr;
}
+void
+monoscope_close (struct monoscope_state *stateptr)
+{
+ convolve_close (stateptr->cstate);
+ free (stateptr);
+}
+
guint32 *
-monoscope_update (struct monoscope_state * stateptr, gint16 data[512])
+monoscope_update (struct monoscope_state *stateptr, gint16 data[512])
{
/* Note that CONVOLVE_BIG must == data size here, ie 512. */
/* Really, we want samples evenly spread over the available data.
@@ -155,8 +162,3 @@ monoscope_update (struct monoscope_state * stateptr, gint16 data[512])
return stateptr->display;
}
-
-void
-monoscope_close (struct monoscope_state *stateptr)
-{
-}