From 47c48ea87ae836b1c22255744ec2ef8aacdb61af Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Mon, 30 Jul 2012 12:30:58 +0200 Subject: 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 --- src/corelib/plugin/qlibrary.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/corelib') 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; } } -- cgit v1.2.3