summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Ostrovsky <david@ostrovsky.org>2012-11-03 01:09:35 +0100
committerPetr Mladek <pmladek@suse.cz>2012-11-05 17:57:16 +0100
commit085c2e3d7f6462df5d5ff7dff59605f210262614 (patch)
tree0e214495e5d1d70de54e08c7db102c93df3038ac
parent896d681452e29417844257c8043d57ab0ba29fab (diff)
fdo#53070 fix access violation
Through that different initialization pIUnknown got random address. The consequence was that if (pIUnknown) pIUnknown->Release(); ends with access viloation in WpBase& WpBase::operator=(const WpBase& rhs) Change-Id: I8b3c5de233d0868fea052c990cc83aed917117ae (cherry picked from commit ac2cfed553b8c9303f86758e9fe8b70911db00cd) Signed-off-by: Michael Stahl <mstahl@redhat.com>
-rw-r--r--connectivity/source/inc/ado/Aolewrap.hxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/connectivity/source/inc/ado/Aolewrap.hxx b/connectivity/source/inc/ado/Aolewrap.hxx
index 810603d8e1a0..e4702ae44951 100644
--- a/connectivity/source/inc/ado/Aolewrap.hxx
+++ b/connectivity/source/inc/ado/Aolewrap.hxx
@@ -103,9 +103,8 @@ namespace connectivity
}
WpOLEBase(const WpOLEBase<T>& aWrapper)
- : WpBase(aWrapper)
- , pInterface(aWrapper.pInterface)
{
+ operator=(aWrapper);
}
virtual ~WpOLEBase()