diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-04-09 20:10:01 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-04-10 09:55:55 +0200 |
commit | f52ca8e48174f7d0f7df38c1bdf17f8491b2259f (patch) | |
tree | cf0b421f7f139b7c257ed07f8c7a4526f5647402 /vcl | |
parent | 4102c4df3ae0446c9cdd55d64459d975ed18103f (diff) |
fix tree view cursor leak
Change-Id: I8660db3d5eddb1596529783e13dff130bb3d0858
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/91999
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/unx/gtk3/gtk3gtkinst.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/vcl/unx/gtk3/gtk3gtkinst.cxx b/vcl/unx/gtk3/gtk3gtkinst.cxx index d4a65c9ce53f..4dc4f10152d2 100644 --- a/vcl/unx/gtk3/gtk3gtkinst.cxx +++ b/vcl/unx/gtk3/gtk3gtkinst.cxx @@ -10433,7 +10433,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 |