mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-03 02:11:21 +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)
|
if (lib->RACloseCodec)
|
||||||
lib->RACloseCodec (lib->context);
|
lib->RACloseCodec (lib->context);
|
||||||
/* lib->RAFreeDecoder (lib->context); */
|
/* lib->RAFreeDecoder (lib->context); */
|
||||||
lib->context = NULL;
|
|
||||||
lib->module = NULL;
|
|
||||||
lib->RACloseCodec = NULL;
|
|
||||||
}
|
}
|
||||||
if (lib->module) {
|
if (lib->module) {
|
||||||
GST_LOG_OBJECT (dec, "closing library module");
|
GST_LOG_OBJECT (dec, "closing library module");
|
||||||
g_module_close (lib->module);
|
g_module_close (lib->module);
|
||||||
lib->module = NULL;
|
|
||||||
}
|
}
|
||||||
|
memset (lib, 0, sizeof (GstRADecLibrary));
|
||||||
}
|
}
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
|
|
Loading…
Reference in a new issue