Fix leaks in DesktopRegion
BUG=crbug.com/246870 R=wez@chromium.org Review URL: https://webrtc-codereview.appspot.com/1615004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@4186 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
parent
2b3a29a1fa
commit
d9c4658756
@ -42,6 +42,7 @@ DesktopRegion::~DesktopRegion() {
|
||||
}
|
||||
|
||||
DesktopRegion& DesktopRegion::operator=(const DesktopRegion& other) {
|
||||
Clear();
|
||||
rows_ = other.rows_;
|
||||
for (Rows::iterator it = rows_.begin(); it != rows_.end(); ++it) {
|
||||
// Copy each row.
|
||||
|
Loading…
x
Reference in New Issue
Block a user