mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-15 00:07:16 +00:00
server: Fix a memory leak.
This commit is contained in:
parent
444b781ff3
commit
9c8bbcd1cd
|
@ -1339,12 +1339,12 @@ static void queue_hardware_message( struct desktop *desktop, struct message *msg
|
||||||
if (!win || !(thread = get_window_thread(win)))
|
if (!win || !(thread = get_window_thread(win)))
|
||||||
{
|
{
|
||||||
if (input) update_input_key_state( input->desktop, input->keystate, msg );
|
if (input) update_input_key_state( input->desktop, input->keystate, msg );
|
||||||
free( msg );
|
free_message( msg );
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
input = thread->queue->input;
|
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
|
else
|
||||||
{
|
{
|
||||||
msg->unique_id = 0; /* will be set once we return it to the app */
|
msg->unique_id = 0; /* will be set once we return it to the app */
|
||||||
|
|
Loading…
Reference in a new issue