Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix crash when unmounting volumes #821

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

yut23
Copy link

@yut23 yut23 commented Sep 28, 2024

This was a use-after-free of monitor, which gets freed by vfs_dir_finalize():

spacefm/src/vfs/vfs-dir.c

Lines 228 to 233 in e6f2918

if ( dir->monitor )
{
vfs_file_monitor_remove( dir->monitor,
vfs_dir_monitor_callback,
dir );
}

I'm not sure why the VFSDir gets destroyed at that point, but it was probably some internal GLib change, as usual.

Fixes #819.

@morfikov
Copy link

morfikov commented Oct 13, 2024

@mati75
I can confirm that the patch works well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Segfault
2 participants