Commit 1960f105 authored by David Edmundson's avatar David Edmundson Committed by Fushan Wen
Browse files

[libnotificationmanager] Fix memory leak

In an &operator= we already have an object. It will have the d-pointer
already allocated.

If we create a new private implementation our old one leaks

(cherry picked from commit 079552b3)
parent 38b3a673
......@@ -448,7 +448,7 @@ Notification::Notification(Notification &&other) noexcept
Notification &Notification::operator=(const Notification &other)
d = new Private(*other.d);
*d = *other.d;
return *this;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment