Debarshi's suggestion about g_clear_object use.

Removed if (pointer != null) condition when using
g_clear_object.
This commit is contained in:
Erick Pérez Castellanos
2012-12-01 15:28:53 -05:00
committed by Rene A. Viant Moran
parent e1be309095
commit 1062d3e435
3 changed files with 11 additions and 18 deletions
+1 -2
View File
@@ -613,8 +613,7 @@ gcal_manager_reload_view (GcalManager *manager,
g_return_if_fail (priv->query != NULL);
/* stopping */
if (unit->view != NULL)
g_clear_object (&(unit->view));
g_clear_object (&(unit->view));
error = NULL;
if (e_cal_client_get_view_sync (unit->client,