[gnome-photos/mnth/google-item-autoptr: 149/149] google-item: Use g_autoptr*




commit 33619675e8bd20af70205a40070c8c2db2806544
Author: Yi-Soo An <yisooan gmail com>
Date:   Thu Feb 7 12:51:57 2019 +0900

    google-item: Use g_autoptr*
    
    Bump minimum libgdata version to 0.17.10.
    
    https://gitlab.gnome.org/GNOME/gnome-photos/issues/77

 meson.build              | 2 +-
 src/photos-google-item.c | 3 +--
 2 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/meson.build b/meson.build
index a49309a5..70816d24 100644
--- a/meson.build
+++ b/meson.build
@@ -168,7 +168,7 @@ gsettings_desktop_schemas_dep = dependency('gsettings-desktop-schemas')
 gtk_dep = dependency('gtk+-3.0', version: '>= 3.22.16')
 gtk_unix_print_dep = dependency('gtk+-unix-print-3.0')
 libdazzle_dep = dependency('libdazzle-1.0', version: '>= 3.26.0')
-libgdata_dep = dependency('libgdata', version: '>= 0.15.2')
+libgdata_dep = dependency('libgdata', version: '>= 0.17.10')
 libgfgraph_dep = dependency('libgfbgraph-0.2', version: '>= 0.2.1')
 libjpeg_dep = dependency('libjpeg')
 libpng_dep = dependency('libpng16')
diff --git a/src/photos-google-item.c b/src/photos-google-item.c
index 2bc74424..5737f958 100644
--- a/src/photos-google-item.c
+++ b/src/photos-google-item.c
@@ -108,7 +108,7 @@ photos_google_get_picasaweb_file (PhotosBaseItem *item, GCancellable *cancellabl
   PhotosSource *source;
   GDataAuthorizationDomain *authorization_domain;
   GDataEntry *entry;
-  GDataGoaAuthorizer *authorizer; /* TODO: use g_autoptr */
+  g_autoptr (GDataGoaAuthorizer) authorizer = NULL;
   g_autoptr (GDataPicasaWebQuery) query = NULL;
   g_autoptr (GDataPicasaWebService) service = NULL;
   const gchar *identifier;
@@ -132,7 +132,6 @@ photos_google_get_picasaweb_file (PhotosBaseItem *item, GCancellable *cancellabl
                                             cancellable,
                                             error);
 
-  g_object_unref (authorizer);
   return entry;
 }
 


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