Kaydet (Commit) bb780224 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Fix memory leak in test code

Change-Id: I318878b3fa883eebbc081a6faf6a594dad2c6e26
üst aaaf4c43
......@@ -7,6 +7,9 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#include <sal/config.h>
#include <boost/scoped_ptr.hpp>
#include <test/bootstrapfixture.hxx>
#include <osl/file.hxx>
......@@ -40,8 +43,7 @@ public:
void CanvasTest::testComposite()
{
#ifdef LINUX
Window* pWin = new WorkWindow( (Window *)NULL );
CPPUNIT_ASSERT( pWin != NULL );
boost::scoped_ptr<Window> pWin(new WorkWindow( (Window *)NULL ));
uno::Reference<rendering::XCanvas> xCanvas = pWin->GetCanvas ();
if( !xCanvas.is() )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment