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
Update to the same stage as the cpp plugin /1 #5
Conversation
The InterlockedIncrement/Decrement calls are defined in avs/posix.h, so those don't actually need to be branched for _WIN32. They aren't the exact same used functions as the branched version, though. It's actually somewhat relevant as well, because even though both versions segfault, the one using the avs/posix-provided branched backtrace:
avs/posix-provided backtrace:
|
The issue was the |
Should avs_lib.c@137 actually be:
because I only say this because it was causing mpv to segfault on script exit (either through quitting early or by reaching EOF). Change it to refer to the pointer, no more segfault. |
Set memory to NULL after and not before it's released. Fix clang-cl warning. Use avs posix.h for handling _stricmp, strcasecmp.
However setting the memory to NULL before avs_close/free is not good - this can lead to undefined behavior in the case of Edit: |
Yeah, |
The only thing I can point out at this stage is that the include for As there's a couple of commits I have to add on top here, I'll just include that change in there as well. |
Another attempt (#4).