[gnome-photos] delete-notification: Clean up



commit d0a1994383c0ef4ecd5eb964f522117e40069a94
Author: Debarshi Ray <debarshir gnome org>
Date:   Fri Oct 30 14:03:47 2015 +0100

    delete-notification: Clean up

 src/photos-delete-notification.c |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/src/photos-delete-notification.c b/src/photos-delete-notification.c
index 4c0df29..88c0b29 100644
--- a/src/photos-delete-notification.c
+++ b/src/photos-delete-notification.c
@@ -183,11 +183,8 @@ photos_delete_notification_dispose (GObject *object)
   PhotosDeleteNotification *self = PHOTOS_DELETE_NOTIFICATION (object);
   PhotosDeleteNotificationPrivate *priv = self->priv;
 
-  if (priv->items != NULL)
-    {
-      g_list_free_full (priv->items, g_object_unref);
-      priv->items = NULL;
-    }
+  g_list_free_full (priv->items, g_object_unref);
+  priv->items = NULL;
 
   g_clear_object (&priv->ntfctn_mngr);
   g_clear_object (&priv->item_mngr);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]