JetBrains / JetBrainsRuntime

Runtime environment based on OpenJDK for running IntelliJ Platform-based products on Windows, macOS, and Linux
GNU General Public License v2.0
1.3k stars 193 forks source link

JBR-7202 wayland: memory leak when resizing windows #394

Closed mkartashev closed 4 months ago

mkartashev commented 4 months ago

JBR-7202 wayland: memory leak when resizing windows

Instead of relying on the property change event, it is enough to signal IMAGE_INCOMPATIBLE when this surface manager gets validated against a graphics configuration with a different transform. This will result in "invalid" buffers dropped by the component's repaint manager and new buffers created with no references that prevent garbage collection.