Use GEDA_UNREF instead of g_object_unref