[geany/geany-plugins] b6020c: treebrowser: Don't try to clear NULL iter

Colomban Wendling git-noreply at xxxxx
Sat Jul 7 03:12:28 UTC 2012


Branch:      refs/heads/1.22_release
Author:      Colomban Wendling <ban at herbesfolles.org>
Committer:   Colomban Wendling <ban at herbesfolles.org>
Date:        Sat, 07 Jul 2012 03:12:28
Commit:      b6020c34cb9723a6378a381388f567c45d8c6907
             https://github.com/geany/geany-plugins/commit/b6020c34cb9723a6378a381388f567c45d8c6907

Log Message:
-----------
treebrowser: Don't try to clear NULL iter


Modified Paths:
--------------
    treebrowser/src/treebrowser.c

Modified: treebrowser/src/treebrowser.c
3 files changed, 2 insertions(+), 1 deletions(-)
===================================================================
@@ -486,7 +486,8 @@ enum
 		treebrowser_bookmarks_set_state();
 	}
 
-	gtk_tree_store_iter_clear_nodes(parent, FALSE);
+	if (parent)
+		gtk_tree_store_iter_clear_nodes(parent, FALSE);
 
 	list = utils_get_file_list(directory, NULL, NULL);
 	if (list != NULL)


@@ Diff output truncated at 100000 characters. @@


--------------
This E-Mail was brought to you by github_commit_mail.py (Source: TBD).



More information about the Plugins-Commits mailing list