D9120: Fix a memory leak

Albert Astals Cid noreply at phabricator.kde.org
Sun Dec 3 11:44:02 UTC 2017


aacid added a comment.


  In https://phabricator.kde.org/D9120#174876, @jtamate wrote:
  
  > As I understand the problem, the reference was created (as a pointer) in setupForDomain, but was stored in a local reference in format (line 1221).
  >  As I'm not sure about the lifetime of the reference, I just delete it in the destructor.
  
  
  But it doesn't belong exclusively to you, no? So you can't delete it.

REPOSITORY
  R249 KI18n

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

To: jtamate, #frameworks
Cc: aacid, apol
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20171203/000f1a99/attachment.html>


More information about the Kde-frameworks-devel mailing list