summaryrefslogtreecommitdiffstats
path: root/src/corelib/plugin
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@nokia.com>2012-07-30 12:30:58 +0200
committerQt by Nokia <qt-info@nokia.com>2012-08-01 00:14:41 +0200
commit47c48ea87ae836b1c22255744ec2ef8aacdb61af (patch)
treef97b5a5d6cb6d9ab891035dec12dc6518c2c88f1 /src/corelib/plugin
parent3e3790b2c78d3aeeff138ff7aca4a94f3bfeb850 (diff)
Fix reloading of plugins
Unloading and reloading a plugin didn't work correctly, because we didn't reset instance to 0 on unload. Task-number: QTBUG-26098 Change-Id: Ic3e4497f359b1ca455be949dce9cafa9d67d8039 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/plugin')
-rw-r--r--src/corelib/plugin/qlibrary.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/corelib/plugin/qlibrary.cpp b/src/corelib/plugin/qlibrary.cpp
index 3815082989..2217140cbf 100644
--- a/src/corelib/plugin/qlibrary.cpp
+++ b/src/corelib/plugin/qlibrary.cpp
@@ -429,6 +429,7 @@ bool QLibraryPrivate::unload()
libraryRefCount.deref();
}
pHnd = 0;
+ instance = 0;
}
}