Skip to content
  • Marco Trevisan's avatar
    gtk/dialogs: Destroy the window promptly on finish async function · 31c5961c
    Marco Trevisan authored
    Some bindings (GJS!) could add temporary references to the GAsyncResult
    argument that we return, and thus to the GTask, which may cause the
    dialog not to close when the finish function is called (but at garbage
    collection instead!).
    To prevent this, just manually destroy the window (by removing the task
    data), so that we are not bound to the GTask lifetime anymore.
    Closes: #5741