wlt: toolkit: fix use after free of dp_fd
authorDavid Herrmann <dh.herrmann@googlemail.com>
Thu, 27 Sep 2012 09:34:15 +0000 (11:34 +0200)
committerDavid Herrmann <dh.herrmann@googlemail.com>
Thu, 27 Sep 2012 09:34:15 +0000 (11:34 +0200)
commitde2536f4e48c1c21ce0d3eb6ff29de1aa8a5cc72
treef05c8d3ff4bf2ca2f8385c8c9d07b707ff9a163d
parente5855f8b616fe04dd39117414d254d2bb66fd3cb
wlt: toolkit: fix use after free of dp_fd

We need to keep dp_fd alive for all calls to wl_display_*(). Otherwise,
the callback will use it and access invalid memory.

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
src/wlt_toolkit.c