mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
monoscope: don't leak the monoscope_state data
The monoscope_close() implementation was empty.
This commit is contained in:
parent
7bc3344131
commit
3ec3bed497
1 changed files with 8 additions and 6 deletions
|
@ -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)
|
||||
{
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue