diff options
author | Tor Lillqvist <tml@collabora.com> | 2014-06-03 23:36:18 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2014-06-04 07:05:23 +0300 |
commit | dacab84536f61f79a5422e1d8d394019ec62f3ec (patch) | |
tree | bdc8c7f52f83a2610a501bbfe8b8aead014f5f50 /vcl/inc | |
parent | 634f647912c07d366e31bfc168fa1294f1613cd6 (diff) |
Avoid accessing freed memory and freeing already freed resources
Seen in smoketest in a 4.2-based branch, but might perhaps happen in master
too. Should not hurt in any case to be more careful. ImplFreeSalGDI() is
called both from SalAbort() and from DestroySalInstance().
Change-Id: Ifac37e8ecfb432848bd3451dbda8634c59a06fba
Diffstat (limited to 'vcl/inc')
-rw-r--r-- | vcl/inc/win/saldata.hxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/vcl/inc/win/saldata.hxx b/vcl/inc/win/saldata.hxx index ec4b39a7761d..f0c5e332839c 100644 --- a/vcl/inc/win/saldata.hxx +++ b/vcl/inc/win/saldata.hxx @@ -70,6 +70,8 @@ public: // checks if the menuhandle was created by VCL bool IsKnownMenuHandle( HMENU hMenu ); + bool mbResourcesAlreadyFreed; + public: HINSTANCE mhInst; // default instance handle HINSTANCE mhPrevInst; // previous instance handle |