Fix regression in SDKTools SetClientListening hook refcounting (bug 5956, r=fyren).
authorKyle Sanderson <kyle.leet@gmail.com>
Thu Oct 24 13:20:42 2013 -0400 (2013-10-24)
changeset 41535768ce963643
parent 4152 39166fc578c1
child 4154 d333d42bf1d3
Fix regression in SDKTools SetClientListening hook refcounting (bug 5956, r=fyren).
extensions/sdktools/voice.cpp
     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;