From 2644dc421a523501a80641670361be1f1e545b89 Mon Sep 17 00:00:00 2001 From: Adrien Destugues Date: Sat, 7 Aug 2010 17:26:44 +0000 Subject: [PATCH] CID 1717: BAboutBoxmust be deleted after use. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37955 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/preferences/locale/Locale.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/preferences/locale/Locale.cpp b/src/preferences/locale/Locale.cpp index 6a13c9af9c..b118456fe7 100644 --- a/src/preferences/locale/Locale.cpp +++ b/src/preferences/locale/Locale.cpp @@ -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; }