server: Fix a memory leak.

This commit is contained in:
Alexandre Julliard 2011-04-06 20:00:40 +02:00
parent 444b781ff3
commit 9c8bbcd1cd
1 changed files with 2 additions and 2 deletions

View File

@ -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 */