diff options
| author | PancakeTAS <pancake@mgnet.work> | 2026-06-25 11:13:16 +0200 |
|---|---|---|
| committer | PancakeTAS <pancake@mgnet.work> | 2026-06-25 11:13:33 +0200 |
| commit | e97d9eb1751623e5434aac08a5746350be2a7341 (patch) | |
| tree | 6b0453025be1add7158c6341c3ff2ce082ef4363 /src/syncobject.cpp | |
| parent | Large documentation overhaul & main DRM device (diff) | |
Bug fixes all across the project
Diffstat (limited to 'src/syncobject.cpp')
| -rw-r--r-- | src/syncobject.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/syncobject.cpp b/src/syncobject.cpp index f2d3bbc..4ec1a9c 100644 --- a/src/syncobject.cpp +++ b/src/syncobject.cpp @@ -4,6 +4,7 @@ #include "drm++/helper.hpp" #include "drm++/ioctl.hpp" +#include <cassert> #include <cstddef> #include <optional> #include <span> @@ -68,7 +69,7 @@ void SyncObjectBase::destruct() noexcept { try { ioctl::perform(this->m_fd, DRM_IOCTL_SYNCOBJ_DESTROY, args); } catch(...) { - (void) 0; // not much we can do about the leak + assert(false && "Sync object destroy failed, memory leak likely"); } this->m_fd = -1; |
