CID 1717: BAboutBoxmust be deleted after use.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37955 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Adrien Destugues 2010-08-07 17:26:44 +00:00
parent 324670b9c3
commit 2644dc421a

View File

@ -97,7 +97,10 @@ LocalePreflet::AboutRequested()
authors[0] = "Axel Dörfler";
authors[1] = "Adrien Destugues";
authors[2] = NULL;
(new BAboutWindow(B_TRANSLATE("Locale"), 2005, authors))->Show();
BAboutWindow* about = new BAboutWindow(B_TRANSLATE("Locale"), 2005,
authors);
about->Show();
delete about;
}