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  
    302302
    303303PatchReviewPlugin::~PatchReviewPlugin() {
    304304    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();
    306308}
    307309
    308310void PatchReviewPlugin::clearPatch( QObject* _patch ) {