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

debugger: Fix internal EnvTree state after plugin reload #158

Merged
merged 3 commits into from
Jul 4, 2015

Conversation

b4n
Copy link
Member

@b4n b4n commented Oct 12, 2014

As the module is resident, the global variables won't get reinitialized
automatically when the plugin is reloaded, so reinitialize them
explicitly.

This is especially important for the empty_row variable as not
re-initializing it will lead to a double-free, and possibly a crash.

As the module is resident, the global variables won't get reinitialized
automatically when the plugin is reloaded, so reinitialize them
explicitly.

This is especially important for the `empty_row` variable as not
re-initializing it will lead to a double-free, and possibly a crash.
@b4n
Copy link
Member Author

b4n commented Oct 21, 2014

@cesspit If you can find a minute you could also give this a look :)

@evgeni
Copy link
Contributor

evgeni commented Oct 22, 2014

+1
works fine on Debian for me (crashed before the patch when I re-enabled debugger 1-2 times).

b4n added 2 commits June 18, 2015 17:18
Those should not cause any problem in real situations, but resetting
them properly is safer as it doesn't depend on a very specific sequence
of events.
@b4n b4n merged commit c816282 into geany:master Jul 4, 2015
b4n added a commit that referenced this pull request Jul 4, 2015
debugger: Fix crash after plugin reload
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.

None yet

2 participants