From c838fcb3fa4cecd8f6e8f00858da689cd281ea13 Mon Sep 17 00:00:00 2001 From: Alexandra Ellwood Date: Tue, 25 Apr 2006 21:24:33 +0000 Subject: 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 --- src/util/support/plugins.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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); -- cgit