Commit 795e043c authored by gbazin's avatar gbazin
Browse files

* modules/codec/dmo/dmo.c: fixed a couple of memleaks.

parent 519f20ec
...@@ -62,7 +62,7 @@ FARPROC WINAPI GetProcAddress(HMODULE,LPCSTR); ...@@ -62,7 +62,7 @@ FARPROC WINAPI GetProcAddress(HMODULE,LPCSTR);
int WINAPI FreeLibrary(HMODULE); int WINAPI FreeLibrary(HMODULE);
#endif /* LOADER */ #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] = static int pi_channels_maps[7] =
{ {
...@@ -697,6 +697,7 @@ void DecoderClose( vlc_object_t *p_this ) ...@@ -697,6 +697,7 @@ void DecoderClose( vlc_object_t *p_this )
if( !p_sys ) return; 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 ); FreeLibrary( p_sys->hmsdmo_dll );
#ifdef LOADER #ifdef LOADER
...@@ -1542,6 +1543,7 @@ void EncoderClose( vlc_object_t *p_this ) ...@@ -1542,6 +1543,7 @@ void EncoderClose( vlc_object_t *p_this )
if( !p_sys ) return; 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 ); FreeLibrary( p_sys->hmsdmo_dll );
#ifdef LOADER #ifdef LOADER
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment