D17325: Fix leak in kemoticons

Anthony Fieroni noreply at phabricator.kde.org
Mon Dec 3 08:17:35 GMT 2018


anthonyfieroni added inline comments.

INLINE COMMENTS

> kemoticonstheme.cpp:32
>      ~KEmoticonsThemeData();
>      KEmoticonsProvider *provider = nullptr;
>  };

Make it shared pointer, KEmoticonsTheme::KEmoticonsTheme(const KEmoticonsTheme &ket) initialize provider with raw other pointer, deletion will cause a segfault in use after.

> kemoticonstheme.cpp:41
>  {
> -//     delete provider;
> +    delete provider;
>  }

Remove that line.

REPOSITORY
  R301 KEmoticons

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

To: kfunk
Cc: anthonyfieroni, kde-frameworks-devel, michaelh, ngraham, bruns
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20181203/f63b5443/attachment.html>


More information about the Kde-frameworks-devel mailing list