Commit 3ec3bed4 authored by Stefan Kost's avatar Stefan Kost

monoscope: don't leak the monoscope_state data

The monoscope_close() implementation was empty.
parent 7bc33441
......@@ -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)
{
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment