From 9e3865c76dd03a2180585a8b9282911ed5919872 Mon Sep 17 00:00:00 2001 From: Rene Gollent Date: Sat, 7 Aug 2010 23:16:14 +0000 Subject: [PATCH] Allocate AboutWindow on stack as suggested by Stephan. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37959 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/preferences/locale/Locale.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/preferences/locale/Locale.cpp b/src/preferences/locale/Locale.cpp index b118456fe7..5b1d5da836 100644 --- a/src/preferences/locale/Locale.cpp +++ b/src/preferences/locale/Locale.cpp @@ -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(); }