[gedit] OpenDocumentSelector: g_clear_pointer fix



commit b8ee332a5b50e0f6310f244386b0310530efef8c
Author: Sebastien Lafargue <slafargue gnome org>
Date:   Sun Aug 30 09:47:35 2015 +0200

    OpenDocumentSelector: g_clear_pointer fix
    
    g_clear_pointer is NULL-safe, so no need
    to check for that

 gedit/gedit-open-document-selector-store.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/gedit/gedit-open-document-selector-store.c b/gedit/gedit-open-document-selector-store.c
index 586e6a2..a9a652e 100644
--- a/gedit/gedit-open-document-selector-store.c
+++ b/gedit/gedit-open-document-selector-store.c
@@ -576,10 +576,7 @@ gedit_open_document_selector_store_dispose (GObject *object)
 
        gedit_recent_configuration_destroy (&selector_store->recent_config);
 
-       if (selector_store->recent_source != NULL)
-       {
-               g_clear_pointer (&selector_store->recent_source, g_source_destroy);
-       }
+       g_clear_pointer (&selector_store->recent_source, g_source_destroy);
 
        if (selector_store->recent_items)
        {


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