From 260dc418188d7a4d1b17e42d63f6b11c6103831c Mon Sep 17 00:00:00 2001 From: Aleksey Bragin Date: Wed, 4 Apr 2007 16:04:41 +0000 Subject: [PATCH] - Fix freeing of an unallocated memory bug (RtlInitUnicodeString() never allocates anything, it just initializes necessary fields, and noone asks us to free the string the function gets as a parameter). svn path=/trunk/; revision=26261 --- reactos/dll/win32/user32/windows/clipboard.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/reactos/dll/win32/user32/windows/clipboard.c b/reactos/dll/win32/user32/windows/clipboard.c index e56d54a6a67..f2b43d7e77d 100644 --- a/reactos/dll/win32/user32/windows/clipboard.c +++ b/reactos/dll/win32/user32/windows/clipboard.c @@ -269,8 +269,7 @@ RegisterClipboardFormatW(LPCWSTR lpszFormat) RtlInitUnicodeString(&usFormat, lpszFormat); ret = NtUserRegisterClipboardFormat(&usFormat); - RtlFreeUnicodeString(&usFormat); - + return ret; }