[Differential] [Commented On] D4542: Fix crash with Memory Viewer enabled

Anton Anikin noreply at phabricator.kde.org
Sat Feb 11 13:58:07 UTC 2017


antonanikin added a comment.


  In https://phabricator.kde.org/D4542#85367, @volden wrote:
  
  > Aren't we leaking memory views now?
  >  How about removing the signal and just deleting all memoryViews in MemoryViewWidgets dtor?
  
  
  Hi, Morten. No, we haven't memleaks after the patch because of using `QObject` parent-child  mechanism:
  
  `MemoryView* widget = new MemoryView(this); // line 458`
  
  The fixed crash was caused by wrong combination of automatic (`QObject` mechanism) and manual (`slotChildDestroyed()`) approaches for memory management.

REPOSITORY
  R32 KDevelop

REVISION DETAIL
  https://phabricator.kde.org/D4542

EMAIL PREFERENCES
  https://phabricator.kde.org/settings/panel/emailpreferences/

To: antonanikin, #kdevelop, apol
Cc: volden, apol, kdevelop-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20170211/f603047f/attachment.html>


More information about the KDevelop-devel mailing list