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:
parent
19eab0dda2
commit
9e3865c76d
|
@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue