[gnome-photos] done-notification: Use g_auto*
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] done-notification: Use g_auto*
- Date: Tue, 24 Oct 2017 17:46:28 +0000 (UTC)
commit 1e671db21b85ca261ed7e037ca6308e8e643f1b8
Author: Umang Jain <mailumangjain gmail com>
Date: Sun Oct 8 09:11:20 2017 +0530
done-notification: Use g_auto*
https://bugzilla.gnome.org/show_bug.cgi?id=788174
src/photos-done-notification.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/photos-done-notification.c b/src/photos-done-notification.c
index c802d6d..f2bcf50 100644
--- a/src/photos-done-notification.c
+++ b/src/photos-done-notification.c
@@ -106,7 +106,7 @@ photos_done_notification_constructed (GObject *object)
GtkWidget *undo;
const gchar *id;
const gchar *name;
- gchar *msg;
+ g_autofree gchar *msg = NULL;
G_OBJECT_CLASS (photos_done_notification_parent_class)->constructed (object);
@@ -120,7 +120,6 @@ photos_done_notification_constructed (GObject *object)
gtk_widget_set_halign (label, GTK_ALIGN_START);
gtk_widget_set_hexpand (label, TRUE);
gtk_container_add (GTK_CONTAINER (self), label);
- g_free (msg);
undo = gtk_button_new_with_label (_("Undo"));
gtk_widget_set_valign (undo, GTK_ALIGN_CENTER);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]