Skip to content

Commit

Permalink
gproject: replace g_return_if_fail() with normal if check
Browse files Browse the repository at this point in the history
This can legally happen on plugin unload/load.
  • Loading branch information
techee committed Oct 15, 2014
1 parent 5ced5bf commit 08fd8de
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gproject/src/gproject-project.c
Expand Up @@ -466,7 +466,8 @@ gint gprj_project_add_properties_tab(GtkWidget *notebook)

void gprj_project_close(void)
{
g_return_if_fail(g_prj);
if (!g_prj)
return; /* can happen on plugin reload */

if (g_prj->generate_tags)
g_hash_table_foreach(g_prj->file_tag_table, (GHFunc)workspace_remove_tag, NULL);
Expand Down

0 comments on commit 08fd8de

Please sign in to comment.