Add an assert in Window::unref()

This commit is contained in:
Vlad Zahorodnii 2024-08-29 15:40:50 +03:00
parent 54cb3407d3
commit fc1f53895f

View file

@ -108,6 +108,7 @@ void Window::ref()
void Window::unref()
{
Q_ASSERT(m_refCount > 0);
--m_refCount;
if (m_refCount) {
return;