[gnome-initial-setup] Don't crash while setting the avatar



commit 3b1ab227d2036979a1781c96622d8c7c752730b4
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Mar 2 02:53:11 2014 -0500

    Don't crash while setting the avatar
    
    We were unreffing an outputstream that wasn't ours.

 .../pages/account/gis-account-page-local.c         |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
---
diff --git a/gnome-initial-setup/pages/account/gis-account-page-local.c 
b/gnome-initial-setup/pages/account/gis-account-page-local.c
index 29f03af..2b5d7e0 100644
--- a/gnome-initial-setup/pages/account/gis-account-page-local.c
+++ b/gnome-initial-setup/pages/account/gis-account-page-local.c
@@ -412,7 +412,6 @@ set_user_avatar (GisAccountPageLocal *page)
     g_warning ("failed to save image: %s", error->message);
     g_error_free (error);
   }
-  g_clear_object (&stream);
   g_clear_object (&io_stream);
   g_clear_object (&file);
 }


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