summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPranav Kant <pranavk@collabora.co.uk>2017-10-26 15:25:41 -0700
committerJan Holesovsky <kendy@collabora.com>2017-11-15 17:07:16 +0100
commit0968edb21c069c4c91836581a7c29f8e82d533bb (patch)
treed6923111180b191603fa0f0217bea5ae847bd8e6
parentdf8f50170b502a8ad4a528507740f4f15ce1bc6d (diff)
lokdialog: Clear the pointer after destroying
Change-Id: Iebbe3fab6f6144f0cf1de9a1c45a0b2a62b07e0b Reviewed-on: https://gerrit.libreoffice.org/43958 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: pranavk <pranavk@collabora.co.uk>
-rw-r--r--libreofficekit/qa/gtktiledviewer/gtv-lok-dialog.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/libreofficekit/qa/gtktiledviewer/gtv-lok-dialog.cxx b/libreofficekit/qa/gtktiledviewer/gtv-lok-dialog.cxx
index c7f5bfe39e10..0db80a8ef8f0 100644
--- a/libreofficekit/qa/gtktiledviewer/gtv-lok-dialog.cxx
+++ b/libreofficekit/qa/gtktiledviewer/gtv-lok-dialog.cxx
@@ -643,7 +643,10 @@ void gtv_lok_dialog_child_close(GtvLokDialog* dialog)
GtvLokDialogPrivate* priv = getPrivate(dialog);
if (priv->pFloatingWin)
+ {
gtk_widget_destroy(priv->pFloatingWin);
+ priv->pFloatingWin = nullptr;
+ }
}