[WidgetControl][Non-ACR] Fix resource leak 54/209154/1
authorhyunho <hhstark.kang@samsung.com>
Wed, 3 Jul 2019 04:12:44 +0000 (13:12 +0900)
committerhyunho <hhstark.kang@samsung.com>
Wed, 3 Jul 2019 04:12:44 +0000 (13:12 +0900)
Change-Id: Ifbc2120c8e6d9cabdd78c5bf57f15d6cfdc8f766
Signed-off-by: hyunho <hhstark.kang@samsung.com>
tct-suite-vs/Tizen.WidgetControl.Tests/testcase/TSWidgetLifecycleEventArgs.cs [changed mode: 0755->0644]

old mode 100755 (executable)
new mode 100644 (file)
index a0ba20b..e8cf397
@@ -72,10 +72,6 @@ namespace Tizen.WidgetControl.WidgetLifecycleEventArgs.Tests
             }
         }
 
-        private static void ShutdownWidget()
-        {
-        }
-
         [SetUp]
         public void Init()
         {
@@ -85,11 +81,10 @@ namespace Tizen.WidgetControl.WidgetLifecycleEventArgs.Tests
         [TearDown]
         public void Destroy()
         {
-            if (_window != null)
-            {
-                ShutdownWidget();
-            }
             LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, "Postconditions for each TEST");
+            RemoteViewFactory.Shutdown();
+            _remoteView = null;
+            _background = null;
         }
 
         [Test]