Просмотр исходного кода

Set handle to NULL in clUnload().

Dario Manesku 11 лет назад
Родитель
Сommit
aeb312c48a
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      include/bx/cl.h

+ 1 - 0
include/bx/cl.h

@@ -888,6 +888,7 @@ namespace bx
 			if (0 == ref)
 			if (0 == ref)
 			{
 			{
 				dlclose(m_handle);
 				dlclose(m_handle);
+				m_handle = NULL;
 			}
 			}
 
 
 			return ref;
 			return ref;