mirror of
https://github.com/glfw/glfw.git
synced 2026-09-19 23:43:15 +00:00
Linux: Fix memory leak when inotify init failed
This introduces regex_compiled boolean to track whether the regex is
compiled successfully.
Closes #2229
(cherry picked from commit c992226a9c)
This commit is contained in:
committed by
Camilla Löwy
parent
6f9686f1f4
commit
7c7cc59889
@@ -53,6 +53,7 @@ typedef struct _GLFWlibraryLinux
|
||||
int inotify;
|
||||
int watch;
|
||||
regex_t regex;
|
||||
GLFWbool regex_compiled;
|
||||
GLFWbool dropped;
|
||||
} _GLFWlibraryLinux;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user