[gnome-control-center] Online accounts: avoid an extraneous unref



commit a53ebeb6f0a7ff6581be88ad239bdcd214e2558e
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Sep 4 16:47:03 2011 -0400

    Online accounts: avoid an extraneous unref
    
    When bailing out early, the cleanup path is unreffing the provider
    because the variable was used in the loop. We need to set it back
    to NULL there.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=657819

 panels/online-accounts/cc-online-accounts-panel.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/panels/online-accounts/cc-online-accounts-panel.c b/panels/online-accounts/cc-online-accounts-panel.c
index d491686..4e4c197 100644
--- a/panels/online-accounts/cc-online-accounts-panel.c
+++ b/panels/online-accounts/cc-online-accounts-panel.c
@@ -479,6 +479,7 @@ on_toolbar_add_button_clicked (GtkToolButton *button,
                                  goa_provider_get_provider_type (provider),
                                  provider_name);
       g_free (provider_name);
+      provider = NULL;
     }
   gtk_combo_box_set_active (GTK_COMBO_BOX (combo_box), 0);
 



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