diff options
author | George Hazan <george.hazan@gmail.com> | 2015-05-07 17:42:55 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-05-07 17:42:55 +0000 |
commit | 81c987f5b850447389b2621037a364c3fcb0ba73 (patch) | |
tree | ad5163f5e6bc65fd31e39d530cf975eb9d059bf2 /protocols/IcqOscarJ/src/icq_rates.cpp | |
parent | 44d6a1fff311d6d4784f325ed4ae412eda64c8c6 (diff) |
crash fix on exit
git-svn-id: http://svn.miranda-ng.org/main/trunk@13479 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/IcqOscarJ/src/icq_rates.cpp')
-rw-r--r-- | protocols/IcqOscarJ/src/icq_rates.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/protocols/IcqOscarJ/src/icq_rates.cpp b/protocols/IcqOscarJ/src/icq_rates.cpp index a00db8f212..32fa47d0a1 100644 --- a/protocols/IcqOscarJ/src/icq_rates.cpp +++ b/protocols/IcqOscarJ/src/icq_rates.cpp @@ -310,6 +310,10 @@ struct rate_delay_args void __cdecl CIcqProto::rateDelayThread(rate_delay_args *pArgs)
{
SleepEx(pArgs->nDelay, TRUE);
+
+ if (g_bTerminated)
+ return;
+
(pArgs->queue->*pArgs->delaycode)();
SAFE_FREE((void**)&pArgs);
}
|