Add an assert in Window::unref()
This commit is contained in:
parent
54cb3407d3
commit
fc1f53895f
1 changed files with 1 additions and 0 deletions
|
@ -108,6 +108,7 @@ void Window::ref()
|
|||
|
||||
void Window::unref()
|
||||
{
|
||||
Q_ASSERT(m_refCount > 0);
|
||||
--m_refCount;
|
||||
if (m_refCount) {
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue