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
-2
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)