[geany/geany] 843456: Merge pull request #3080 from eht16/fix_potential_crash_on_tag_tree_update
Jiří Techet
git-noreply at xxxxx
Mon Jan 3 15:17:13 UTC 2022
Branch: refs/heads/master
Author: Jiří Techet <techet at gmail.com>
Committer: GitHub <noreply at github.com>
Date: Mon, 03 Jan 2022 15:17:13 UTC
Commit: 843456cb52507b38c089cf4145b70de2920db28c
https://github.com/geany/geany/commit/843456cb52507b38c089cf4145b70de2920db28c
Log Message:
-----------
Merge pull request #3080 from eht16/fix_potential_crash_on_tag_tree_update
Update doc->priv->tag_tree_dirty only if doc is set
Modified Paths:
--------------
src/sidebar.c
Modified: src/sidebar.c
2 lines changed, 1 insertions(+), 1 deletions(-)
===================================================================
@@ -191,7 +191,7 @@ void sidebar_update_tag_list(GeanyDocument *doc, gboolean update)
g_return_if_fail(doc == NULL || doc->is_valid);
- if (update)
+ if (update && doc != NULL)
doc->priv->tag_tree_dirty = TRUE;
if (gtk_notebook_get_current_page(GTK_NOTEBOOK(main_widgets.sidebar_notebook)) != TREEVIEW_SYMBOL)
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
More information about the Commits
mailing list