Kaydet (Commit) 899ffa4c authored tarafından Caolán McNamara's avatar Caolán McNamara

gnome-documents: hold solarmutex on dtor patch as well

Change-Id: I75fe71612116d435606c37185bf55b450425fc25
Reviewed-on: https://gerrit.libreoffice.org/37396Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst c45660df
...@@ -171,6 +171,12 @@ public: ...@@ -171,6 +171,12 @@ public:
SolarMutexGuard aGuard; SolarMutexGuard aGuard;
unique_disposing_ptr<T>::reset(p); unique_disposing_ptr<T>::reset(p);
} }
virtual ~unique_disposing_solar_mutex_reset_ptr() override
{
if (unique_disposing_ptr<T>::get() && comphelper::SolarMutex::get())
reset();
}
}; };
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment