[gtranslator/gtk4: 38/79] Removed g_autofree (cause of segfault)




commit a773570cfb18e538df5f95202cbaceadc3c2ede8
Author: afshan ahmed khan <afshanahmeda2k gmail com>
Date:   Mon Jun 13 12:34:17 2022 +0530

    Removed g_autofree (cause of segfault)

 src/gtr-actions-file.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/gtr-actions-file.c b/src/gtr-actions-file.c
index a7e3c343..b8bfcf20 100644
--- a/src/gtr-actions-file.c
+++ b/src/gtr-actions-file.c
@@ -155,7 +155,7 @@ gtr_po_parse_files_from_dialog (GtkNativeDialog * dialog, GtrWindow * window)
     }*/
 
   po_files_model = gtk_file_chooser_get_files (GTK_FILE_CHOOSER (dialog));
-  g_autofree guint i = 0;
+  guint i = 0;
   while (i < g_list_model_get_n_items(po_files_model)) {
     file = g_list_model_get_item(po_files_model, i);
     locations = g_slist_prepend (locations, file);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]