From 7f1ac755e4571a01c9e1b8e16aa41038ecbd10bb Mon Sep 17 00:00:00 2001 From: Stefan Kost Date: Tue, 17 Nov 2009 00:37:28 +0200 Subject: [PATCH] realaudiodec: reindent and make valgrind happy The state-change tests reported access to uninitialized memory. --- gst/real/gstrealaudiodec.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/gst/real/gstrealaudiodec.c b/gst/real/gstrealaudiodec.c index 5f5b900dea..7ccc1db772 100644 --- a/gst/real/gstrealaudiodec.c +++ b/gst/real/gstrealaudiodec.c @@ -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