mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-19 08:11:16 +00:00
realaudiodec: reindent and make valgrind happy
The state-change tests reported access to uninitialized memory.
This commit is contained in:
parent
a9ffdb5b47
commit
7f1ac755e4
1 changed files with 1 additions and 4 deletions
|
@ -205,15 +205,12 @@ close_library (GstRealAudioDec * dec, GstRADecLibrary * lib)
|
|||
if (lib->RACloseCodec)
|
||||
lib->RACloseCodec (lib->context);
|
||||
/* lib->RAFreeDecoder (lib->context); */
|
||||
lib->context = NULL;
|
||||
lib->module = NULL;
|
||||
lib->RACloseCodec = NULL;
|
||||
}
|
||||
if (lib->module) {
|
||||
GST_LOG_OBJECT (dec, "closing library module");
|
||||
g_module_close (lib->module);
|
||||
lib->module = NULL;
|
||||
}
|
||||
memset (lib, 0, sizeof (GstRADecLibrary));
|
||||
}
|
||||
|
||||
static gboolean
|
||||
|
|
Loading…
Reference in a new issue