Commit 9c8bbcd1 authored by Alexandre Julliard's avatar Alexandre Julliard

server: Fix a memory leak.

parent 444b781f
......@@ -1339,12 +1339,12 @@ static void queue_hardware_message( struct desktop *desktop, struct message *msg
if (!win || !(thread = get_window_thread(win)))
{
if (input) update_input_key_state( input->desktop, input->keystate, msg );
free( msg );
free_message( msg );
return;
}
input = thread->queue->input;
if (msg->msg == WM_MOUSEMOVE && merge_message( input, msg )) free( msg );
if (msg->msg == WM_MOUSEMOVE && merge_message( input, msg )) free_message( msg );
else
{
msg->unique_id = 0; /* will be set once we return it to the app */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment