include/comphelper/unique_disposing_ptr.hxx | 6 ++++++ 1 file changed, 6 insertions(+)
New commits: commit 899ffa4c4c66702e2a65f4065cbb7970d0e9c0e2 Author: Caolán McNamara <caol...@redhat.com> Date: Mon May 8 15:51:46 2017 +0100 gnome-documents: hold solarmutex on dtor patch as well Change-Id: I75fe71612116d435606c37185bf55b450425fc25 Reviewed-on: https://gerrit.libreoffice.org/37396 Tested-by: Jenkins <c...@libreoffice.org> Reviewed-by: Caolán McNamara <caol...@redhat.com> Tested-by: Caolán McNamara <caol...@redhat.com> diff --git a/include/comphelper/unique_disposing_ptr.hxx b/include/comphelper/unique_disposing_ptr.hxx index a22b3ac761b3..d39f9f3aec8d 100644 --- a/include/comphelper/unique_disposing_ptr.hxx +++ b/include/comphelper/unique_disposing_ptr.hxx @@ -171,6 +171,12 @@ public: SolarMutexGuard aGuard; unique_disposing_ptr<T>::reset(p); } + + virtual ~unique_disposing_solar_mutex_reset_ptr() override + { + if (unique_disposing_ptr<T>::get() && comphelper::SolarMutex::get()) + reset(); + } }; }
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits