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:
sergeyu@chromium.org 2013-06-05 19:24:42 +00:00
parent 2b3a29a1fa
commit d9c4658756

View File

@ -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.