[bijiben/wip/sadiq/modernize] import-dialog: Port to g_auto*
- From: Mohammed Sadiq <pksadiq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [bijiben/wip/sadiq/modernize] import-dialog: Port to g_auto*
- Date: Fri, 5 Jan 2018 03:07:53 +0000 (UTC)
commit 77d5f8ecdddb646b15769f31365f01fc7280fa9c
Author: Mohammed Sadiq <sadiq sadiqpk org>
Date: Fri Jan 5 08:07:11 2018 +0530
import-dialog: Port to g_auto*
https://bugzilla.gnome.org/show_bug.cgi?id=792221
src/bjb-import-dialog.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/src/bjb-import-dialog.c b/src/bjb-import-dialog.c
index 74f4d41..4be6827 100644
--- a/src/bjb-import-dialog.c
+++ b/src/bjb-import-dialog.c
@@ -127,7 +127,7 @@ on_file_set_cb (GtkWidget *chooser,
static void
bjb_import_dialog_constructed (GObject *obj)
{
- gchar *path;
+ g_autofree gchar *path = NULL;
BjbImportDialog *self = BJB_IMPORT_DIALOG (obj);
G_OBJECT_CLASS(bjb_import_dialog_parent_class)->constructed(obj);
@@ -147,8 +147,6 @@ bjb_import_dialog_constructed (GObject *obj)
if (g_file_test (path, G_FILE_TEST_EXISTS))
gtk_widget_show (self->gnote_import);
-
- g_free (path);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]