summaryrefslogtreecommitdiff
path: root/libreofficekit
diff options
context:
space:
mode:
authorPranav Kant <pranavk@collabora.co.uk>2017-10-26 15:25:41 -0700
committerpranavk <pranavk@collabora.co.uk>2017-10-28 17:06:40 +0200
commit79fa071767c7c6b88950b82143fa76df63b172e6 (patch)
tree2f802a04f4af723d1d72589d758746cfd98a6c24 /libreofficekit
parent1a1ee7803d8f17532fb2149fcc386cc70720eef0 (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>
Diffstat (limited to 'libreofficekit')
-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 b0d86bddb6e8..6948b842f633 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;
+ }
}