-
Rémi Denis-Courmont authored
Also do not needlessly lock after unregistering the callbacks. We have to assume that when var_DelCallback returns, any pending callback invocation has be completed. Otherwise, we would any crash when Close() releases the mutex, destroys it, and the callback then tries to acquire the mutex.
75fb09e9