diff options
author | das <das@noemail.net> | 2005-05-20 02:50:16 (GMT) |
---|---|---|
committer | das <das@noemail.net> | 2005-05-20 02:50:16 (GMT) |
commit | dca310554ed979dd9cfa112db154adad7056eac9 (patch) | |
tree | 0e9ab80ade530c9f26cfc992c824a91317feab41 | |
parent | b4cc49615747f55fe40ee9c6317cb82cbe723489 (diff) | |
download | tcl-dca310554ed979dd9cfa112db154adad7056eac9.zip tcl-dca310554ed979dd9cfa112db154adad7056eac9.tar.gz tcl-dca310554ed979dd9cfa112db154adad7056eac9.tar.bz2 |
* macosx/tclMacOSXNotify.c (Tcl_InitNotifier): fixed crashing
CFRelease of runLoopSource in Tcl_InitNotifier (reported by Zoran):
CFRunLoopAddSource doesn't CFRetain, so can only CFRelease the
runLoopSource in Tcl_FinalizeNotifier.
FossilOrigin-Name: 6db5952245443ec079e899135c4bb78605438766
-rw-r--r-- | macosx/tclMacOSXNotify.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/macosx/tclMacOSXNotify.c b/macosx/tclMacOSXNotify.c index e091888..95cc46f 100644 --- a/macosx/tclMacOSXNotify.c +++ b/macosx/tclMacOSXNotify.c @@ -13,7 +13,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclMacOSXNotify.c,v 1.2 2005/05/19 13:27:28 das Exp $ + * RCS: @(#) $Id: tclMacOSXNotify.c,v 1.3 2005/05/20 02:50:17 das Exp $ */ #ifdef HAVE_COREFOUNDATION /* Traditional unix select-based notifier @@ -362,7 +362,7 @@ Tcl_FinalizeNotifier(clientData) tsdPtr->runLoop = NULL; /* Remove runLoopSource from all CFRunLoops and release it */ CFRunLoopSourceInvalidate(tsdPtr->runLoopSource); - CFRelease(runLoopSource); + CFRelease(tsdPtr->runLoopSource); tsdPtr->runLoopSource = NULL; } UNLOCK_NOTIFIER; |