diff options
author | Caolán McNamara <caolanm@redhat.com> | 2022-02-21 10:01:42 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2022-03-01 18:38:27 +0100 |
commit | 05db887bc226b85befe2c2b9e84b796020a6ca05 (patch) | |
tree | cdb86937b266212f6fae5f7d6e596f30350a49ad /sd/source/ui/view/sdview.cxx | |
parent | ae071f7d680545e284e5947d26cbea30e59bdfb5 (diff) |
gtk4: media dimensions are only reliably available async
this is also the case for the direct gstreamer use in gtk3 but
more egregious when abstracted away from it in gtk4
Change-Id: If90069308d67929585722c079c482cd4ad196e1f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130468
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sd/source/ui/view/sdview.cxx')
-rw-r--r-- | sd/source/ui/view/sdview.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sd/source/ui/view/sdview.cxx b/sd/source/ui/view/sdview.cxx index b1ddd90c95cf..100374ae8205 100644 --- a/sd/source/ui/view/sdview.cxx +++ b/sd/source/ui/view/sdview.cxx @@ -22,6 +22,7 @@ #include <com/sun/star/linguistic2/XSpellChecker1.hpp> #include <View.hxx> +#include <avmedia/mediawindow.hxx> #include <editeng/outlobj.hxx> #include <editeng/unolingu.hxx> #include <o3tl/deleter.hxx> @@ -142,6 +143,12 @@ View::~View() // release content of selection clipboard, if we own the content ClearSelectionClipboard(); + if (mxDropMediaSizeListener) + { + mxDropMediaSizeListener->dispose(); + mxDropMediaSizeListener.clear(); + } + maDropErrorIdle.Stop(); maDropInsertFileIdle.Stop(); |