From aeb312c48af0e9a3e905f18a49a9b011f496eb1f Mon Sep 17 00:00:00 2001 From: Dario Manesku Date: Tue, 24 Jun 2014 10:04:19 +0100 Subject: [PATCH] Set handle to NULL in clUnload(). --- include/bx/cl.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/bx/cl.h b/include/bx/cl.h index c7b7bd7..62bfe89 100644 --- a/include/bx/cl.h +++ b/include/bx/cl.h @@ -888,6 +888,7 @@ namespace bx if (0 == ref) { dlclose(m_handle); + m_handle = NULL; } return ref;