From 795e043c5a1fd6bd8f8c9e6bfdcd86df7b160bde Mon Sep 17 00:00:00 2001 From: Gildas Bazin Date: Mon, 1 Nov 2004 16:21:29 +0000 Subject: [PATCH] * modules/codec/dmo/dmo.c: fixed a couple of memleaks. --- modules/codec/dmo/dmo.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/codec/dmo/dmo.c b/modules/codec/dmo/dmo.c index 1f21a15d11..e5ed02f908 100644 --- a/modules/codec/dmo/dmo.c +++ b/modules/codec/dmo/dmo.c @@ -62,7 +62,7 @@ FARPROC WINAPI GetProcAddress(HMODULE,LPCSTR); int WINAPI FreeLibrary(HMODULE); #endif /* LOADER */ -typedef long STDCALL (*GETCLASS) ( const GUID*, const GUID*, void** ); +typedef long (STDCALL *GETCLASS) ( const GUID*, const GUID*, void** ); static int pi_channels_maps[7] = { @@ -697,6 +697,7 @@ void DecoderClose( vlc_object_t *p_this ) if( !p_sys ) return; + if( p_sys->p_dmo ) p_sys->p_dmo->vt->Release( (IUnknown *)p_sys->p_dmo ); FreeLibrary( p_sys->hmsdmo_dll ); #ifdef LOADER @@ -1542,6 +1543,7 @@ void EncoderClose( vlc_object_t *p_this ) if( !p_sys ) return; + if( p_sys->p_dmo ) p_sys->p_dmo->vt->Release( (IUnknown *)p_sys->p_dmo ); FreeLibrary( p_sys->hmsdmo_dll ); #ifdef LOADER -- 2.11.4.GIT