Skip to content

Commit

Permalink
Fix unreffing NULL icons when generating tags
Browse files Browse the repository at this point in the history
  • Loading branch information
b4n committed Jun 14, 2015
1 parent 23eff5c commit cdd07e1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/symbols.c
Expand Up @@ -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);
}
}

0 comments on commit cdd07e1

Please sign in to comment.