[geany/geany] cdd07e: Fix unreffing NULL icons when generating tags

Colomban Wendling git-noreply at xxxxx
Sun Jun 14 22:09:13 UTC 2015


Branch:      refs/heads/master
Author:      Colomban Wendling <ban at herbesfolles.org>
Committer:   Colomban Wendling <ban at herbesfolles.org>
Date:        Sun, 14 Jun 2015 22:09:13 UTC
Commit:      cdd07e15f5f4ad48b2aff3979b620916cfd78446
             https://github.com/geany/geany/commit/cdd07e15f5f4ad48b2aff3979b620916cfd78446

Log Message:
-----------
Fix unreffing NULL icons when generating tags


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

Modified: src/symbols.c
5 lines changed, 4 insertions(+), 1 deletions(-)
===================================================================
@@ -2425,5 +2425,8 @@ void symbols_finalize(void)
 	g_strfreev(c_tags_ignore);
 
 	for (i = 0; i < G_N_ELEMENTS(symbols_icons); i++)
-		g_object_unref(symbols_icons[i].pixbuf);
+	{
+		if (symbols_icons[i].pixbuf)
+			g_object_unref(symbols_icons[i].pixbuf);
+	}
 }



--------------
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