connection: Also consume message data in error cases

This commit is contained in:
Kristian Høgsberg 2011-01-26 11:46:35 -05:00
parent f9edadf3f2
commit f03b6c7694
1 changed files with 1 additions and 0 deletions

View File

@ -647,6 +647,7 @@ wl_connection_demarshal(struct wl_connection *connection,
err:
closure->count = i;
wl_closure_destroy(closure);
wl_connection_consume(connection, size);
return NULL;
}