[Libreoffice-commits] core.git: libreofficekit/qa

Pranav Kant pranavk at collabora.co.uk
Sat Oct 28 15:07:04 UTC 2017


 libreofficekit/qa/gtktiledviewer/gtv-lok-dialog.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 79fa071767c7c6b88950b82143fa76df63b172e6
Author: Pranav Kant <pranavk at collabora.co.uk>
Date:   Thu Oct 26 15:25:41 2017 -0700

    lokdialog: Clear the pointer after destroying
    
    Change-Id: Iebbe3fab6f6144f0cf1de9a1c45a0b2a62b07e0b
    Reviewed-on: https://gerrit.libreoffice.org/43958
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: pranavk <pranavk at collabora.co.uk>

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;
+    }
 }
 
 


More information about the Libreoffice-commits mailing list