delete newly-created gcc here if it isn't our current gcc since we won't be using it

SVN revision: 76728
This commit is contained in:
Mike Blumenkrantz 2012-09-17 04:44:41 +00:00
parent 46afc57359
commit 6cf37f95bf
1 changed files with 6 additions and 0 deletions

View File

@ -2986,6 +2986,12 @@ _e_gadcon_cb_drop(void *data, const char *type __UNUSED__, void *event __UNUSED_
e_config_save_queue();
return;
}
if (new_gcc && (new_gcc != gcc))
{
new_gcc->cf = NULL;
e_object_del(E_OBJECT(new_gcc));
new_gcc = NULL;
}
if (gc->editing) e_gadcon_client_edit_begin(gcc);
e_config_save_queue();
}