From 2cabd258cc7827a15ed417691f96ce04d09e202e Mon Sep 17 00:00:00 2001 From: Jon Ashburn Date: Tue, 3 Feb 2015 09:26:59 -0700 Subject: [PATCH] loader: Make sure loader instances get updated upon DestroyInstance() --- loader/loader.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/loader/loader.c b/loader/loader.c index 453e69d..0aa2940 100644 --- a/loader/loader.c +++ b/loader/loader.c @@ -864,6 +864,8 @@ LOADER_EXPORT XGL_RESULT XGLAPI xglDestroyInstance( // Remove this instance from the list: if (prev) prev->next = next->next; + else + loader.instances = next->next; break; } prev = next; -- 2.7.4