From: Alexandra Ellwood Date: Tue, 25 Apr 2006 21:24:33 +0000 (+0000) Subject: Updated comments to explain how the CFBundles get unloaded. X-Git-Tag: krb5-1.5-alpha1~50 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c838fcb3fa4cecd8f6e8f00858da689cd281ea13;p=krb5.git Updated comments to explain how the CFBundles get unloaded. (And not to call CFBundleUnloadExecutable which is refcounted.) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17962 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/util/support/plugins.c b/src/util/support/plugins.c index d134da4bb..a4780f38f 100644 --- a/src/util/support/plugins.c +++ b/src/util/support/plugins.c @@ -256,7 +256,8 @@ krb5int_close_plugin (struct plugin_file_handle *h) if (h->dlhandle != NULL) { dlclose(h->dlhandle); } #endif #if USE_CFBUNDLE - /* Do not unload. CFBundleUnloadExecutable is not ref counted. */ + /* Do not call CFBundleUnloadExecutable because it's not ref counted. + * CFRelease will unload the bundle if the internal refcount goes to zero. */ if (h->bundle != NULL) { CFRelease (h->bundle); } #endif free (h);