diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-07-10 11:59:06 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-07-10 11:59:06 +0300 |
commit | 719629f2aa8cc146427b68bd6fcf422bdd1e52b0 (patch) | |
tree | e04b5c7bb4e1c338f7486e2fb1ef272aba2ce005 | |
parent | f9107eae6a30649d4637e55e8ffdb124a7b0ef7a (diff) |
GHOST: Fix memory leak in X11 DPI query
The X resource database is to be explicitly destroyed. This fixes 46 bytes
leak per every window DPI query (which happens a lot on window move/resize
and even on areas resize).
Unfortunately, this does not fully fix the leak since the known leak:
https://bugs.freedesktop.org/show_bug.cgi?id=94604
-rw-r--r-- | intern/ghost/intern/GHOST_WindowX11.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/intern/ghost/intern/GHOST_WindowX11.cpp b/intern/ghost/intern/GHOST_WindowX11.cpp index 933bcd7f012..dc701062df8 100644 --- a/intern/ghost/intern/GHOST_WindowX11.cpp +++ b/intern/ghost/intern/GHOST_WindowX11.cpp @@ -1697,6 +1697,7 @@ getDPIHint() } } } + XrmDestroyDatabase(xrdb); } /* Fallback to calculating DPI using X reported DPI, set using xrandr --dpi */ |