connection: Move object lookup out of wl_connection_demarshal()
authorKristian Høgsberg <krh@bitplanet.net>
Tue, 9 Oct 2012 16:14:34 +0000 (12:14 -0400)
committerKristian Høgsberg <krh@bitplanet.net>
Thu, 11 Oct 2012 02:01:17 +0000 (22:01 -0400)
commit5d2b32b1fd14fddd3920205d1368cf0e499fc6ff
tree9b7bd99895ac836d60e54b1197334b9e720d3420
parent9fe75537ad207c1496e6d9be41a8f5af4b876506
connection: Move object lookup out of wl_connection_demarshal()

On the client side where we queue up multiple events before dispatching, we
need to look up the receiving proxy and argument proxies immediately before
calling the handler.  Between queueing up multiple events and eventually
invoking the handler, previous handlers may have destroyed some of the
proxies.
src/connection.c
src/wayland-client.c
src/wayland-private.h
src/wayland-server.c