Fix regression in SDKTools SetClientListening hook refcounting (bug 5956, r=fyren).
Fix regression in SDKTools SetClientListening hook refcounting (
bug 5956, r=fyren).
1.1 --- a/extensions/sdktools/voice.cpp Thu Oct 24 00:53:27 2013 -0500
1.2 +++ b/extensions/sdktools/voice.cpp Thu Oct 24 13:20:42 2013 -0400
1.3 @@ -68,7 +68,7 @@
1.4
1.5 bool DecHookCount()
1.6 {
1.7 - if (g_VoiceHookCount == 0)
1.8 + if (--g_VoiceHookCount == 0)
1.9 {
1.10 SH_REMOVE_HOOK(IVoiceServer, SetClientListening, voiceserver, SH_MEMBER(&g_SdkTools, &SDKTools::OnSetClientListening), false);
1.11 return true;