diff --git a/sfx2/source/appl/app.cxx b/sfx2/source/appl/app.cxx index ad86ee81b671..307e21873fd6 100644 --- a/sfx2/source/appl/app.cxx +++ b/sfx2/source/appl/app.cxx @@ -35,7 +35,6 @@ #include #include #include -#include #include #include #include @@ -217,7 +216,7 @@ SfxApplication::SfxApplication() SfxApplication::~SfxApplication() { - OSL_ENSURE( GetObjectShells_Impl().size() == 0, "Memory leak: some object shells were not removed!" ); + SAL_WARN_IF(GetObjectShells_Impl().size() != 0, "sfx.appl", "Memory leak: some object shells were not removed!"); Broadcast( SfxHint(SFX_HINT_DYING) );