Xext: Recover from miSyncInitFenceFromFD failure without crashing
authorKeith Packard <keithp@keithp.com>
Tue, 19 Nov 2013 06:33:27 +0000 (22:33 -0800)
committerKeith Packard <keithp@keithp.com>
Sun, 24 Nov 2013 06:06:19 +0000 (22:06 -0800)
commit037566c57caff93fd7717f385d4b532b81f19c77
treea5caf961a3b3e08e5e87daf51e51fd02f1ee6c38
parente7000534a456fdf9cd4eaada3193846c8525f740
Xext: Recover from miSyncInitFenceFromFD failure without crashing

miSyncDestroyFence must not be called unless miSyncInitFence has been
invoked, so if miSyncInitFenceFromFD fails, we must free the fence
manually.

Signed-off-by: Keith Packard <keithp@keithp.com>
Tested-by: Fredrik Höglund <fredrik@kde.org>
Xext/sync.c