Linux: Fix regfree being called on invalid data

This was caused by a careless merge that did not take the differences
between the branches into account.

Regression introduced by 7c7cc59889.

Fixes #2464
This commit is contained in:
Camilla Löwy 2024-01-14 23:30:32 +01:00
parent 9ba47ca13a
commit 7998629ad2
3 changed files with 2 additions and 3 deletions

View File

@ -202,6 +202,7 @@ video tutorials.
- Aleksey Rybalkin
- Mikko Rytkönen
- Riku Salminen
- Anton Samokhvalov
- Brandon Schaefer
- Sebastian Schuberth
- Christian Sdunek

View File

@ -123,7 +123,7 @@ information on what to include when reporting a bug.
## Changelog
There is nothing here yet.
- [Linux] Bugfix: `regfree´ was called on invalid data (#2464)
## Contact

View File

@ -334,8 +334,6 @@ void _glfwTerminateJoysticksLinux(void)
closeJoystick(js);
}
regfree(&_glfw.linjs.regex);
if (_glfw.linjs.inotify > 0)
{
if (_glfw.linjs.watch > 0)