Author: pulkomandy Date: 2010-08-11 16:37:40 +0200 (Wed, 11 Aug 2010) New Revision: 38029 Changeset: http://dev.haiku-os.org/changeset/38029 Modified: haiku/trunk/src/preferences/backgrounds/BackgroundsView.cpp Log: CID 1740: Memory leak in Backgrounds since Show doesn't take ownership of the info (code is commented) Modified: haiku/trunk/src/preferences/backgrounds/BackgroundsView.cpp =================================================================== --- haiku/trunk/src/preferences/backgrounds/BackgroundsView.cpp 2010-08-11 13:57:39 UTC (rev 38028) +++ haiku/trunk/src/preferences/backgrounds/BackgroundsView.cpp 2010-08-11 14:37:40 UTC (rev 38029) @@ -923,6 +923,8 @@ fPreView->fImageBounds = BRect(bitmap->Bounds()); fCurrent->Show(info, fPreView); + + delete info; } } else fPreView->SetEnabled(false);