[almanah/9-remove-deprecated-g-time-val] [import] Using GDateTime automatic cleanup
- From: Álvaro Peña <alvaropg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [almanah/9-remove-deprecated-g-time-val] [import] Using GDateTime automatic cleanup
- Date: Tue, 25 May 2021 21:56:47 +0000 (UTC)
commit 06553f580ca135adcda0a01bfc3c80af5755b213
Author: Álvaro Peña <alvaropg gmail com>
Date: Tue May 25 23:52:28 2021 +0200
[import] Using GDateTime automatic cleanup
src/import-operation.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/src/import-operation.c b/src/import-operation.c
index 56657c1..54b5410 100644
--- a/src/import-operation.c
+++ b/src/import-operation.c
@@ -351,7 +351,7 @@ import_text_files (AlmanahImportOperation *self, GFile *source, AlmanahImportPro
while ((file_info = g_file_enumerator_next_file (enumerator, NULL, &child_error)) != NULL) {
AlmanahEntry *entry;
GDate parsed_date, last_edited;
- GDateTime *modification_date_time = NULL;
+ g_autoptr(GDateTime) modification_date_time = NULL;
GFile *file;
gchar *contents, *message = NULL;
gsize length;
@@ -408,7 +408,6 @@ import_text_files (AlmanahImportOperation *self, GFile *source, AlmanahImportPro
g_object_unref (entry);
g_object_unref (file_info);
- g_date_time_unref (modification_date_time);
/* Check for cancellation */
if (cancellable != NULL && g_cancellable_set_error_if_cancelled (cancellable, &child_error)
== TRUE)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]