git.videolan.org
/
vlc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d5f996a
)
win32text: fix memleak
author
Pierre Ynard
<linkfanel@yahoo.fr>
Tue, 15 Sep 2009 15:40:11 +0000
(17:40 +0200)
committer
Pierre Ynard
<linkfanel@yahoo.fr>
Tue, 15 Sep 2009 15:40:11 +0000
(17:40 +0200)
modules/misc/win32text.c
patch
|
blob
|
history
diff --git
a/modules/misc/win32text.c
b/modules/misc/win32text.c
index
9d0a0db
..
e8c4309
100644
(file)
--- 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;
}