[vlc-devel] commit: win32text: fix memleak (Pierre Ynard )
git version control
git at videolan.org
Tue Sep 15 17:40:56 CEST 2009
vlc | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Tue Sep 15 17:40:11 2009 +0200| [5e2c4b1a9c4a26bcaf02c95ba81a055bf9d4b12c] | committer: Pierre Ynard
win32text: fix memleak
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5e2c4b1a9c4a26bcaf02c95ba81a055bf9d4b12c
---
modules/misc/win32text.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/modules/misc/win32text.c b/modules/misc/win32text.c
index 9d0a0db..e8c4309 100644
--- a/modules/misc/win32text.c
+++ b/modules/misc/win32text.c
@@ -370,6 +370,7 @@ static int RenderText( filter_t *p_filter, subpicture_region_t *p_region_out,
if( !bitmap )
{
msg_Err( p_filter, "could not create bitmap" );
+ free( psz_string );
return VLC_EGENERIC;
}
@@ -388,6 +389,7 @@ static int RenderText( filter_t *p_filter, subpicture_region_t *p_region_out,
SelectObject( p_sys->hcdc, bitmap_bak );
DeleteObject( bitmap );
+ free( psz_string );
return VLC_SUCCESS;
}
More information about the vlc-devel
mailing list