From 027bd09397e789b3d26d379bb6b2dbbe31d064d8 Mon Sep 17 00:00:00 2001 From: zhouleonlei Date: Tue, 22 Dec 2020 18:13:21 +0800 Subject: [PATCH] Modify dispose issue for window --- src/Tizen.NUI/src/public/Window.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Tizen.NUI/src/public/Window.cs b/src/Tizen.NUI/src/public/Window.cs index 36cc3a3..9bd4af2 100755 --- a/src/Tizen.NUI/src/public/Window.cs +++ b/src/Tizen.NUI/src/public/Window.cs @@ -1168,11 +1168,14 @@ namespace Tizen.NUI { PropertyValue value = new PropertyValue((int)orientations[i]); orientationArray.PushBack(value); - value.Dispose(); } } Interop.Window.SetAvailableOrientations(SwigCPtr, PropertyArray.getCPtr(orientationArray)); + for (uint i = 0; i < orientationArray.Count(); i++) + { + orientationArray[i].Dispose(); + } orientationArray.Dispose(); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } -- 2.7.4