[vlc-devel] commit: win32text: fix memleak (Pierre Ynard )
git version control
git at videolan.org
Tue Sep 15 17:42:34 CEST 2009
vlc | branch: 1.0-bugfix | Pierre Ynard <linkfanel at yahoo.fr> | Tue Sep 15 17:40:11 2009 +0200| [89ab9b799ff44939cfed5a49a57f9272d2486fb4] | committer: Pierre Ynard
win32text: fix memleak
(cherry picked from commit 5e2c4b1a9c4a26bcaf02c95ba81a055bf9d4b12c)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=89ab9b799ff44939cfed5a49a57f9272d2486fb4
---
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 8fa661a..028941c 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