realaudiodec: reindent and make valgrind happy

The state-change tests reported access to uninitialized memory.
This commit is contained in:
Stefan Kost 2009-11-17 00:37:28 +02:00
parent a9ffdb5b47
commit 7f1ac755e4

View file

@ -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