Commit 82bfc117 authored by Yi-Soo An's avatar Yi-Soo An Committed by Debarshi Ray

base-item: Use g_auto*

Bump minimum GExiv2 version to 0.10.8.

https://gitlab.gnome.org/GNOME/gnome-photos/issues/77
parent b40ff068
......@@ -40,6 +40,7 @@ DAZZLE_MIN_VERSION=3.26.0
GDATA_MIN_VERSION=0.15.2
GDK_PIXBUF_MIN_VERSION=2.32
GEGL_MIN_VERSION=0.4.0
GEXIV2_MIN_VERSION=0.10.8
GFBGRAPH_MIN_VERSION=0.2.1
GLIB_MIN_VERSION=2.44.0
GOA_MIN_VERSION=3.8.0
......@@ -97,7 +98,7 @@ PKG_CHECK_MODULES(GFBGRAPH, [libgfbgraph-0.2 >= $GFBGRAPH_MIN_VERSION])
PKG_CHECK_MODULES(GDATA, [libgdata >= $GDATA_MIN_VERSION])
PKG_CHECK_MODULES(GEGL, [gegl-0.4 >= $GEGL_MIN_VERSION])
PKG_CHECK_MODULES(GEOCODE, [geocode-glib-1.0])
PKG_CHECK_MODULES(GEXIV2, [gexiv2])
PKG_CHECK_MODULES(GEXIV2, [gexiv2 >= $GEXIV2_MIN_VERSION])
PKG_CHECK_MODULES(GDK_PIXBUF, [gdk-pixbuf-2.0 >= $GDK_PIXBUF_MIN_VERSION])
PKG_CHECK_MODULES(GLIB, [glib-2.0 >= $GLIB_MIN_VERSION])
PKG_CHECK_MODULES(GIO, [gio-2.0 gio-unix-2.0])
......
......@@ -1954,7 +1954,7 @@ photos_base_item_save_metadata_in_thread_func (GTask *task,
PhotosBaseItem *self = PHOTOS_BASE_ITEM (source_object);
PhotosBaseItemPrivate *priv;
GFile *file = G_FILE (task_data);
GExiv2Metadata *metadata = NULL; /* TODO: Use g_autoptr */
g_autoptr (GExiv2Metadata) metadata = NULL;
g_autofree gchar *export_path = NULL;
g_autofree gchar *source_path = NULL;
......@@ -2002,7 +2002,6 @@ photos_base_item_save_metadata_in_thread_func (GTask *task,
out:
g_mutex_unlock (&priv->mutex_save_metadata);
g_clear_object (&metadata);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment