CID 1740: Memory leak in Backgrounds since Show doesn't take ownership of the info (code is commented)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38029 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -923,6 +923,8 @@ BackgroundsView::_UpdatePreview()
|
|||||||
|
|
||||||
fPreView->fImageBounds = BRect(bitmap->Bounds());
|
fPreView->fImageBounds = BRect(bitmap->Bounds());
|
||||||
fCurrent->Show(info, fPreView);
|
fCurrent->Show(info, fPreView);
|
||||||
|
|
||||||
|
delete info;
|
||||||
}
|
}
|
||||||
} else
|
} else
|
||||||
fPreView->SetEnabled(false);
|
fPreView->SetEnabled(false);
|
||||||
|
|||||||
Reference in New Issue
Block a user