vcl/win/app/salinfo.cxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit 970b87bb7b7d77ef12dbcad6ed7caa8edd92e413
Author:     Noel Grandin <noelgran...@gmail.com>
AuthorDate: Wed Sep 14 15:09:05 2022 +0200
Commit:     Noel Grandin <noel.gran...@collabora.co.uk>
CommitDate: Wed Sep 14 20:30:42 2022 +0200

    should be releasing the DC here
    
    Change-Id: If2460da367356ef04ca344542c2c82f8283c9e67
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139935
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk>

diff --git a/vcl/win/app/salinfo.cxx b/vcl/win/app/salinfo.cxx
index 2787797a6ce5..c028939fd65a 100644
--- a/vcl/win/app/salinfo.cxx
+++ b/vcl/win/app/salinfo.cxx
@@ -133,6 +133,7 @@ bool WinSalSystem::initMonitors()
                 m_aMonitors[ i ].m_aName = rDev + " (" + OUString::number( 
nInstance ) + ")";
             }
         }
+        ReleaseDC(nullptr, aDesktopRC);
     }
 
     return m_aMonitors.size() > 0;

Reply via email to