[gnome-photos] view-container: Remove redundant NULL check



commit e885eaa646000c0e9ec41b2013a75d78615b9176
Author: Debarshi Ray <debarshir gnome org>
Date:   Thu Jul 24 13:24:02 2014 +0200

    view-container: Remove redundant NULL check

 src/photos-view-container.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/photos-view-container.c b/src/photos-view-container.c
index aec7f8f..33f75d1 100644
--- a/src/photos-view-container.c
+++ b/src/photos-view-container.c
@@ -255,8 +255,7 @@ photos_view_container_view_selection_changed (GdMainView *main_view, gpointer us
   selected_urns = photos_utils_get_urns_from_paths (selection, GTK_TREE_MODEL (priv->model));
   photos_selection_controller_set_selection (priv->sel_cntrlr, selected_urns);
 
-  if (selection != NULL)
-    g_list_free_full (selection, (GDestroyNotify) gtk_tree_path_free);
+  g_list_free_full (selection, (GDestroyNotify) gtk_tree_path_free);
 }
 
 


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