session: clear libinput devices before unrefing libinput

thanks @ikalco
This commit is contained in:
Vaxry 2024-07-03 12:49:12 +02:00
parent 4ca125d05a
commit a0cfad9ec0

View file

@ -231,6 +231,7 @@ SP<CSession> Aquamarine::CSession::attempt(Hyprutils::Memory::CSharedPointer<CBa
Aquamarine::CSession::~CSession() {
sessionDevices.clear();
libinputDevices.clear();
if (libinputHandle)
libinput_unref(libinputHandle);