[Libreoffice-commits] core.git: Branch 'libreoffice-6-4' - vcl/unx

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Thu Apr 16 17:07:52 UTC 2020


 vcl/unx/gtk3/gtk3gtkinst.cxx |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

New commits:
commit 2b9402e3150145760c9f48917a822c0f0c704d54
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Thu Apr 9 20:10:01 2020 +0100
Commit:     Xisco Faulí <xiscofauli at libreoffice.org>
CommitDate: Thu Apr 16 19:07:19 2020 +0200

    fix tree view cursor leak
    
    Change-Id: I8660db3d5eddb1596529783e13dff130bb3d0858
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92008
    Tested-by: Jenkins
    Reviewed-by: Xisco Faulí <xiscofauli at libreoffice.org>

diff --git a/vcl/unx/gtk3/gtk3gtkinst.cxx b/vcl/unx/gtk3/gtk3gtkinst.cxx
index f82347713d65..820828c3e796 100644
--- a/vcl/unx/gtk3/gtk3gtkinst.cxx
+++ b/vcl/unx/gtk3/gtk3gtkinst.cxx
@@ -9296,7 +9296,10 @@ public:
             GtkTreeModel *pModel = GTK_TREE_MODEL(m_pTreeStore);
             gtk_tree_model_get_iter(pModel, &pGtkIter->iter, path);
         }
-        return path != nullptr;
+        if (!path)
+            return false;
+        gtk_tree_path_free(path);
+        return true;
     }
 
     virtual int get_cursor_index() const override


More information about the Libreoffice-commits mailing list