[gnome-text-editor] session: ensure task is always completed



commit ca2ed7406e781e69b8ffcb2343e856511920eb48
Author: Christian Hergert <chergert redhat com>
Date:   Fri May 13 14:32:12 2022 -0700

    session: ensure task is always completed
    
    This can happen if org.gnome.desktop.privacy remember-recent-files is set
    to false, causing a segfault at shutdown when persisting the session back
    to disk.
    
    Fixes #371

 src/editor-session.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/src/editor-session.c b/src/editor-session.c
index e0cc706..6e3ce95 100644
--- a/src/editor-session.c
+++ b/src/editor-session.c
@@ -1103,6 +1103,7 @@ editor_session_update_recent_worker (GTask        *task,
       /* Just delete recent files if the user doesn't want them */
       g_autofree gchar *path = get_bookmarks_filename ();
       g_unlink (path);
+      g_task_return_boolean (task, TRUE);
       return;
     }
 


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