Some memory leak fixes
Hi guys,
I saw some memory leaks during screen init/close with modesetting, tested with valgrind and commands like "xrandr --output eDP-1 --off;xrandr --output eDP-1 --auto"
Here are some some fixes for these leaks, thanks :)
Edited by JeffyChen