summaryrefslogtreecommitdiff
path: root/xmlsecurity/source/helper/xmlsignaturehelper.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'xmlsecurity/source/helper/xmlsignaturehelper.cxx')
-rw-r--r--xmlsecurity/source/helper/xmlsignaturehelper.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/xmlsecurity/source/helper/xmlsignaturehelper.cxx b/xmlsecurity/source/helper/xmlsignaturehelper.cxx
index c0f05769ad9d..3809ff3bc13c 100644
--- a/xmlsecurity/source/helper/xmlsignaturehelper.cxx
+++ b/xmlsecurity/source/helper/xmlsignaturehelper.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: xmlsignaturehelper.cxx,v $
*
- * $Revision: 1.13 $
+ * $Revision: 1.14 $
*
- * last change: $Author: mt $ $Date: 2004-07-21 14:31:25 $
+ * last change: $Author: mt $ $Date: 2004-07-22 10:34:22 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -72,6 +72,8 @@
#include <com/sun/star/io/XOutputStream.hpp>
#include <com/sun/star/io/XInputStream.hpp>
#include <com/sun/star/io/XActiveDataSource.hpp>
+#include <com/sun/star/lang/XComponent.hpp>
+
#include <tools/date.hxx>
#include <tools/time.hxx>
@@ -98,10 +100,8 @@ XMLSignatureHelper::XMLSignatureHelper( const uno::Reference< lang::XMultiServic
XMLSignatureHelper::~XMLSignatureHelper()
{
- if (mxSEInitializer.is())
- {
+ if ( mxSEInitializer.is() && mxSecurityContext.is() )
mxSEInitializer->freeSecurityContext( mxSecurityContext );
- }
}
bool XMLSignatureHelper::Init( const rtl::OUString& rTokenPath )