From df6f36511c33a527e57aed71f932329cca16d437 Mon Sep 17 00:00:00 2001 From: Vinay Sachdeva Date: Fri, 9 Aug 2013 02:00:04 +0530 Subject: [PATCH] Fixed Nabi Issues N_SE-47676 Change-Id: I18b7e6b1fe8e58e9909ee1e4bef5bb0115aa0e5c Signed-off-by: Vinay Sachdeva --- src/IntMainForm.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/IntMainForm.cpp b/src/IntMainForm.cpp index 74744da..fb6d838 100644 --- a/src/IntMainForm.cpp +++ b/src/IntMainForm.cpp @@ -486,10 +486,9 @@ MainForm::InitWebControl() else { r = AddControl(__pWebViewer); - if (IsFailed(r)) { - delete __pWebViewer; + __pWebViewer->Destroy(); __pWebViewer = null; AppLogDebug("Web addcontrol failed with %s", GetErrorMessage(r)); return r; -- 2.7.4