Updated comments to explain how the CFBundles get unloaded.
authorAlexandra Ellwood <lxs@mit.edu>
Tue, 25 Apr 2006 21:24:33 +0000 (21:24 +0000)
committerAlexandra Ellwood <lxs@mit.edu>
Tue, 25 Apr 2006 21:24:33 +0000 (21:24 +0000)
(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

index d134da4bbb15458303205bfb40c2762104981ad2..a4780f38faf8476e933f1b1376299bd2ffbf0489 100644 (file)
@@ -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);