From 018b493c7680ee842137d3fa7e97bb832e04b377 Mon Sep 17 00:00:00 2001 From: Samuel Cobb Date: Thu, 25 Jul 2024 16:10:49 +0100 Subject: [PATCH] update overlapping name --- src/allocator/GBM.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/allocator/GBM.cpp b/src/allocator/GBM.cpp index 24f7f4f..46fb347 100644 --- a/src/allocator/GBM.cpp +++ b/src/allocator/GBM.cpp @@ -251,9 +251,9 @@ Aquamarine::CGBMAllocator::CGBMAllocator(int fd_, Hyprutils::Memory::CWeakPointe backend->log(AQ_LOG_TRACE, std::format("New File Descriptor: {}", newFd)); fd = newFd; - auto drmName_ = drmGetDeviceNameFromFd2(newFd); - backend->log(AQ_LOG_TRACE, std::format("drmGetDeviceNameFromFd2: {}", drmName_)); - free(drmName_); + auto newDrmName_ = drmGetDeviceNameFromFd2(newFd); + backend->log(AQ_LOG_TRACE, std::format("drmGetDeviceNameFromFd2: {}", newDrmName_)); + free(newDrmName_); gbmDevice = gbm_create_device(newFd); if (!gbmDevice) {