Skip to content
Snippets Groups Projects
Commit d32b5299 authored by Marko Käning's avatar Marko Käning
Browse files

Preventing a crash in the KWindowInfo::Private destructor on OSX

René J.V. Bertin found that Apple's developer documentation for
CFRelease mentions that its argument may not be a NULL pointer.

CCBUG: 337154
parent 809fcc45
No related branches found
No related tags found
No related merge requests found
......@@ -51,7 +51,9 @@ void KWindowInfo::Private::setProcessSerialNumber(const ProcessSerialNumber& psn
KWindowInfo::Private::~Private()
{
CFRelease(m_axWin);
if (m_axWin) {
CFRelease(m_axWin);
}
}
void KWindowInfo::Private::updateData()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment