[gedit] Small cleanup



commit c48c971ba6314a85a26889e9fdae12555a700dd5
Author: Paolo Borelli <pborelli gnome org>
Date:   Sun Nov 3 17:14:31 2013 +0100

    Small cleanup

 gedit/gedit-close-confirmation-dialog.c |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/gedit/gedit-close-confirmation-dialog.c b/gedit/gedit-close-confirmation-dialog.c
index cd3b2bd..32f836b 100644
--- a/gedit/gedit-close-confirmation-dialog.c
+++ b/gedit/gedit-close-confirmation-dialog.c
@@ -159,11 +159,8 @@ gedit_close_confirmation_dialog_finalize (GObject *object)
 
        priv = GEDIT_CLOSE_CONFIRMATION_DIALOG (object)->priv;
 
-       if (priv->unsaved_documents != NULL)
-               g_list_free (priv->unsaved_documents);
-
-       if (priv->selected_documents != NULL)
-               g_list_free (priv->selected_documents);
+       g_list_free (priv->unsaved_documents);
+       g_list_free (priv->selected_documents);
 
        /* Call the parent's destructor */
        G_OBJECT_CLASS (gedit_close_confirmation_dialog_parent_class)->finalize (object);


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