include/svx/numvset.hxx                 |    2 +-
 svx/source/dialog/svxbmpnumvalueset.cxx |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

New commits:
commit fa57da9274fa2f57e42070baaf43d794114815b9
Author:     Mike Kaganski <[email protected]>
AuthorDate: Sat Feb 21 18:56:36 2026 +0500
Commit:     Mike Kaganski <[email protected]>
CommitDate: Sat Feb 21 18:37:53 2026 +0100

    fix VirtualDevice GDI handle leaks in SvxNumValueSet
    
    Similar to commit e9392c0c86fcf373e00ede92f8ceeee2c7efd233 (fix
    VirtualDevice GDI handle leaks across IconView callers, 2026-02-21).
    
    Change-Id: I521f8cd5679172c5e98172939dd7065cfc8afd86
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/199940
    Reviewed-by: Andras Timar <[email protected]>
    Tested-by: Jenkins CollaboraOffice <[email protected]>
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/199949
    Tested-by: Jenkins
    Reviewed-by: Mike Kaganski <[email protected]>

diff --git a/include/svx/numvset.hxx b/include/svx/numvset.hxx
index 6c8bc4dd4073..86d9bee62895 100644
--- a/include/svx/numvset.hxx
+++ b/include/svx/numvset.hxx
@@ -51,7 +51,7 @@ class SVX_DLLPUBLIC SvxNumValueSet : public ValueSet
 {
     NumberingPageType mePageType;
     tools::Rectangle       maOrgRect;
-    VclPtr<VirtualDevice> mpVDev;
+    ScopedVclPtr<VirtualDevice> mpVDev;
 
     css::uno::Reference<css::text::XNumberingFormatter> mxFormatter;
     css::lang::Locale maLocale;
diff --git a/svx/source/dialog/svxbmpnumvalueset.cxx 
b/svx/source/dialog/svxbmpnumvalueset.cxx
index 025fc769ab44..15460f452c63 100644
--- a/svx/source/dialog/svxbmpnumvalueset.cxx
+++ b/svx/source/dialog/svxbmpnumvalueset.cxx
@@ -407,7 +407,7 @@ FactoryFunction SvxNumValueSet::GetUITestFactory() const
 void SvxNumValueSet::init(NumberingPageType eType)
 {
     mePageType = eType;
-    mpVDev = nullptr;
+    mpVDev.disposeAndClear();
 
     SetColCount( 4 );
     SetLineCount( 2 );

Reply via email to