[vlc-commits] Win32: fix memleak. 10L
Jean-Baptiste Kempf
git at videolan.org
Thu Jan 24 17:18:24 CET 2013
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Thu Jan 24 17:18:06 2013 +0100| [88ed3dbae9484706ee93b32201ddba82fbd5a0dd] | committer: Jean-Baptiste Kempf
Win32: fix memleak. 10L
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=88ed3dbae9484706ee93b32201ddba82fbd5a0dd
---
src/misc/messages.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/misc/messages.c b/src/misc/messages.c
index 99dfd31..1d8fd0b 100644
--- a/src/misc/messages.c
+++ b/src/misc/messages.c
@@ -325,7 +325,9 @@ static void Win32DebugOutputMsg (void* d, int type, const msg_item_t *p_item,
msg[msg_len] = '\n';
msg[msg_len + 1] = '\0';
}
- OutputDebugStringW(ToWide(msg));
+ wchar_t *wmsg = ToWide(msg);
+ OutputDebugStringW(wmsg);
+ free(wmsg);
}
free(msg);
}
More information about the vlc-commits
mailing list