Allocate AboutWindow on stack as suggested by Stephan.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37959 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Rene Gollent 2010-08-07 23:16:14 +00:00
parent 19eab0dda2
commit 9e3865c76d
1 changed files with 2 additions and 3 deletions

View File

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