diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-03-24 14:13:55 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-03-24 14:14:30 +0000 |
commit | 21844db97300e594c212e4a78336cba282a0ad0b (patch) | |
tree | c5f5a79fd437c1441a5474a5aada56e107a74dbb /sw/inc/viewsh.hxx | |
parent | eff9dbc2d6dbaafd10e2522ada0e0b24ad820193 (diff) |
valgrind: fix memory leak
Change-Id: I33ad32f4fa6ca6206e98b38f9170634bce9970de
Diffstat (limited to 'sw/inc/viewsh.hxx')
-rw-r--r-- | sw/inc/viewsh.hxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sw/inc/viewsh.hxx b/sw/inc/viewsh.hxx index c6e7b6ed81a4..fd3d28132e7c 100644 --- a/sw/inc/viewsh.hxx +++ b/sw/inc/viewsh.hxx @@ -106,16 +106,16 @@ class SW_DLLPUBLIC SwViewShell : public sw::Ring<SwViewShell> // Set SwVisArea in order to enable clean formatting before printing. friend void SetSwVisArea( SwViewShell *pSh, const SwRect & ); - BitmapEx* m_pReplaceBmp; ///< replaced display of still loaded images - BitmapEx* m_pErrorBmp; ///< error display of missed images + std::unique_ptr<BitmapEx> m_xReplaceBmp; ///< replaced display of still loaded images + std::unique_ptr<BitmapEx> m_xErrorBmp; ///< error display of missed images - static bool mbLstAct; // true if EndAction of last Shell - // i.e. if the EndActions of the other - // Shells on the document are through. + static bool mbLstAct; // true if EndAction of last Shell + // i.e. if the EndActions of the other + // Shells on the document are through. - Point maPrtOffst; // Ofst for Printer, + Point maPrtOffst; // Ofst for Printer, // non-printable margin. - Size maBrowseBorder; // Border for frame documents. + Size maBrowseBorder; // Border for frame documents. SwRect maInvalidRect; SfxViewShell *mpSfxViewShell; |