summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--writerperfect/source/wpgimp/WPGImportFilter.cxx7
1 files changed, 2 insertions, 5 deletions
diff --git a/writerperfect/source/wpgimp/WPGImportFilter.cxx b/writerperfect/source/wpgimp/WPGImportFilter.cxx
index 32cd57505465..6b6df43e1da8 100644
--- a/writerperfect/source/wpgimp/WPGImportFilter.cxx
+++ b/writerperfect/source/wpgimp/WPGImportFilter.cxx
@@ -164,14 +164,11 @@ OUString SAL_CALL WPGImportFilter::detect( com::sun::star::uno::Sequence< Proper
pValue[i].Value >>= xInputStream;
}
- WPXInputStream* input = new WPXSvInputStream( xInputStream );
+ WPXSvInputStream input( xInputStream );
- if (libwpg::WPGraphics::isSupported(input))
+ if (libwpg::WPGraphics::isSupported(&input))
sTypeName = OUString( RTL_CONSTASCII_USTRINGPARAM ( "draw_WordPerfect_Graphics" ) );
- if (input)
- delete input;
-
if (sTypeName.getLength())
{
if ( location == Descriptor.getLength() )