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 - Aleksey Rybalkin
- Mikko Rytkönen - Mikko Rytkönen
- Riku Salminen - Riku Salminen
- Anton Samokhvalov
- Brandon Schaefer - Brandon Schaefer
- Sebastian Schuberth - Sebastian Schuberth
- Christian Sdunek - Christian Sdunek

View File

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

View File

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