mirror of
https://github.com/hyprwm/hyprlock.git
synced 2024-11-16 23:05:58 +01:00
hyprlock: ensure members are accessed direct (#404)
if the unique_ptr is reset directly accessing it from the destructor causes crashes on Clang/libc++, just access the members directly.
This commit is contained in:
parent
6e0921140e
commit
7fb3c03500
1 changed files with 6 additions and 6 deletions
|
@ -40,14 +40,14 @@ CHyprlock::CHyprlock(const std::string& wlDisplay, const bool immediate) {
|
|||
}
|
||||
|
||||
CHyprlock::~CHyprlock() {
|
||||
if (g_pHyprlock->dma.gbmDevice)
|
||||
gbm_device_destroy(g_pHyprlock->dma.gbmDevice);
|
||||
if (dma.gbmDevice)
|
||||
gbm_device_destroy(dma.gbmDevice);
|
||||
|
||||
if (g_pHyprlock->m_pXKBState)
|
||||
xkb_state_unref(g_pHyprlock->m_pXKBState);
|
||||
if (m_pXKBState)
|
||||
xkb_state_unref(m_pXKBState);
|
||||
|
||||
if (g_pHyprlock->m_pXKBKeymap)
|
||||
xkb_keymap_unref(g_pHyprlock->m_pXKBKeymap);
|
||||
if (m_pXKBKeymap)
|
||||
xkb_keymap_unref(m_pXKBKeymap);
|
||||
}
|
||||
|
||||
// wl_seat
|
||||
|
|
Loading…
Reference in a new issue