Linux: Fix memory leak when inotify init failed

This introduces regex_compiled boolean to track whether the regex is
compiled successfully.

Closes #2229
This commit is contained in:
Michael Skec
2023-11-09 15:04:19 +11:00
committed by Camilla Löwy
parent 0bd3e879e1
commit c992226a9c
2 changed files with 7 additions and 2 deletions
+1
View File
@@ -50,6 +50,7 @@ typedef struct _GLFWlibraryLinux
int inotify;
int watch;
regex_t regex;
GLFWbool regex_compiled;
GLFWbool dropped;
} _GLFWlibraryLinux;