]> git.sesse.net Git - vlc/commitdiff
Win32: fix memleak. 10L
authorJean-Baptiste Kempf <jb@videolan.org>
Thu, 24 Jan 2013 16:18:06 +0000 (17:18 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Thu, 24 Jan 2013 16:18:06 +0000 (17:18 +0100)
src/misc/messages.c

index 99dfd313f398724965e36ac6562839c4240ec360..1d8fd0b8339f55dd685a0b57178a076d2cfbdcf0 100644 (file)
@@ -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);
 }