diff options
author | sdagley%netscape.com <devnull@localhost> | 1999-02-19 02:45:54 +0000 |
---|---|---|
committer | sdagley%netscape.com <devnull@localhost> | 1999-02-19 02:45:54 +0000 |
commit | 4576e02639f1b547ebc434c1b78cb95cc99f9eb6 (patch) | |
tree | 4c3bd03525d300e8c0de186afeb428914a400df9 | |
parent | 6c527b5ebc0ccdc1c39c3ebcd28a744bf1069859 (diff) | |
download | nspr-hg-4576e02639f1b547ebc434c1b78cb95cc99f9eb6.tar.gz |
Mac specific fix. Now that dp's code to walk the shared libs to see what is installed is working we've run into a problem that unloading the libs breaks the app (crash on quit, possible general instability). rjc's fix is to make sure PR_LoadLibrary is loading a unique copy of the lib by changing GetDiskFragment to use the option kPrivateCFragCopy instead of kLoadCFrag.
-rw-r--r-- | pr/src/linking/prlink.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pr/src/linking/prlink.c b/pr/src/linking/prlink.c index 0e3f3ee2..241b3b75 100644 --- a/pr/src/linking/prlink.c +++ b/pr/src/linking/prlink.c @@ -656,7 +656,7 @@ PR_LoadLibrary(const char *name) /* Finally, try to load the library */ err = GetDiskFragment(&fileSpec, 0, kCFragGoesToEOF, fileSpec.name, - kLoadCFrag, &connectionID, &main, errName); + kPrivateCFragCopy, &connectionID, &main, errName); libName = cName; if (err != noErr) |