unref drag gcc when deleting gcc from gc config dialog to ensure it is deleted properly

SVN revision: 79837
This commit is contained in:
Mike Blumenkrantz 2012-11-29 15:22:12 +00:00
parent 6600e453ec
commit 2a6d8d9f74
1 changed files with 4 additions and 0 deletions

View File

@ -514,6 +514,8 @@ _cb_del_advanced(void *data, void *data2 __UNUSED__)
{
if (gcc->cf != cf_gcc) continue;
gcc->cf = NULL;
if (gcc->gadcon->drag_gcc == gcc)
e_object_unref(E_OBJECT(gcc));
e_object_del(E_OBJECT(gcc));
break;
}
@ -580,6 +582,8 @@ _cb_del(void *data, void *data2 __UNUSED__)
{
if (gcc->cf != cf_gcc) continue;
gcc->cf = NULL;
if (gcc->gadcon->drag_gcc == gcc)
e_object_unref(E_OBJECT(gcc));
e_object_del(E_OBJECT(gcc));
break;
}