aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony Pesch <inolen@gmail.com>2013-07-18 23:08:57 -0700
committerAnthony Pesch <inolen@gmail.com>2013-07-18 23:08:57 -0700
commitf3b2e09396099ee6612a84be92ab66d66e124370 (patch)
tree3e25a379cb4ef952574c41e7c063335182e133a8
parent528ff4b80496068650f9308e18a59d5165335783 (diff)
fix for 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];
}