summaryrefslogtreecommitdiff
path: root/sc/qa/unit/screenshots/screenshots.cxx
diff options
context:
space:
mode:
authorKatarina Behrens <Katarina.Behrens@cib.de>2016-06-29 14:40:23 +0200
committerThorsten Behrens <Thorsten.Behrens@CIB.de>2016-08-18 02:39:11 +0200
commit061a94ebb244d13e74608de098af49a6d1bf1967 (patch)
tree666572e0a4f411f16871a5d8f8cd933b0378f81d /sc/qa/unit/screenshots/screenshots.cxx
parentcb7dadfc099a73414a6d9345f615afcf4f0fe7f0 (diff)
screenshots: don't leak windows
Change-Id: If39441d6419556d1ae7637626b17b81357d29c38
Diffstat (limited to 'sc/qa/unit/screenshots/screenshots.cxx')
-rw-r--r--sc/qa/unit/screenshots/screenshots.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/qa/unit/screenshots/screenshots.cxx b/sc/qa/unit/screenshots/screenshots.cxx
index 46a5af28d23e..d331ffa361a3 100644
--- a/sc/qa/unit/screenshots/screenshots.cxx
+++ b/sc/qa/unit/screenshots/screenshots.cxx
@@ -339,7 +339,7 @@ void ScScreenshotTest::testOpeningModalDialogs()
for ( sal_uInt32 i = 0; i < nDialogs; i++ )
{
- VclAbstractDialog *pDialog = createDialogByID( i );
+ std::unique_ptr<VclAbstractDialog> pDialog( createDialogByID( i ) );
dumpDialogToPath( *pDialog );
}