GNOME Bugzilla – Bug 793675
Can't call g_error_free() in VteTerminalSpawnAsyncCallback
Last modified: 2021-06-10 15:29:51 UTC
If an error is passed to the VteTerminalSpawnAsyncCallback after calling vte_terminal_spawn_async(), attempting to free that error causes a double-free. VteTerminalSpawnAsyncCallback's signature should be changed so that error is const, or at least documented to make sure the callee knows not to try to free this error.
(In reply to Tony Houghton from comment #0) > VteTerminalSpawnAsyncCallback's signature should be changed so > that error is const, Yes, this.
However that would be an API change, so needs to wait for the nxt break. In the meanwhile, documenting is good.
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/vte/-/issues/2480.