Ticket #44893: prevent-patchreview-crash.diff
File prevent-patchreview-crash.diff, 562 bytes (added by RJVB (René Bertin), 10 years ago) |
---|
-
kdevplatform-git/plugins/patchreview/
old new 302 302 303 303 PatchReviewPlugin::~PatchReviewPlugin() { 304 304 removeHighlighting(); 305 delete m_patch; 305 // QObject derived objects should be deleted using ->deleteLater() instead of delete <object> 306 // failing to do so may lead to a crash deep in Qt(4) on OS X. 307 m_patch->deleteLater(); 306 308 } 307 309 308 310 void PatchReviewPlugin::clearPatch( QObject* _patch ) {