[gnome-photos] overview-searchbar: Use g_auto*
- From: Umang Jain <uajain src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] overview-searchbar: Use g_auto*
- Date: Tue, 28 Nov 2017 04:39:34 +0000 (UTC)
commit 390f8f21091b1c133562fc87c127c1bc724cdfd8
Author: Umang Jain <mailumangjain gmail com>
Date: Mon Nov 27 00:14:39 2017 +0530
overview-searchbar: Use g_auto*
https://bugzilla.gnome.org/show_bug.cgi?id=788174
src/photos-overview-searchbar.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/photos-overview-searchbar.c b/src/photos-overview-searchbar.c
index c1d8656..3e647f3 100644
--- a/src/photos-overview-searchbar.c
+++ b/src/photos-overview-searchbar.c
@@ -66,7 +66,7 @@ photos_overview_searchbar_active_changed (PhotosOverviewSearchbar *self,
{
GObject *object;
const gchar *id;
- gchar *name;
+ g_autofree gchar *name = NULL;
object = photos_base_manager_get_active_object (mngr);
id = photos_filterable_get_id (PHOTOS_FILTERABLE (object));
@@ -81,7 +81,6 @@ photos_overview_searchbar_active_changed (PhotosOverviewSearchbar *self,
}
gtk_entry_grab_focus_without_selecting (GTK_ENTRY (self->search_entry));
- g_free (name);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]