aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-07-19 14:27:56 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-07-19 14:27:56 -0700
commiteee051b805482722f9417c4b8d763bf7df8619e1 (patch)
treeb832e3797f5423ea2cad4aa98fbeb69481136964
parent93a3268b6a42c0ea5df36bbd99510655e1ce4fc3 (diff)
parentf3b2e09396099ee6612a84be92ab66d66e124370 (diff)
Merge pull request #1414 from inolen/dlclose_refcount_fix
fix for dlclose refcount cleanup
-rw-r--r--src/library.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library.js b/src/library.js
index e0db3336..b2823fb6 100644
--- a/src/library.js
+++ b/src/library.js
@@ -5956,7 +5956,7 @@ LibraryManager.library = {
return 1;
} else {
var lib_record = DLFCN_DATA.loadedLibs[handle];
- if (lib_record.refcount-- == 0) {
+ if (--lib_record.refcount == 0) {
delete DLFCN_DATA.loadedLibNames[lib_record.name];
delete DLFCN_DATA.loadedLibs[handle];
}