From ae911d4e6695709afa3fa366f2d06da9d5f19dc3 Mon Sep 17 00:00:00 2001 From: Joogab Yun Date: Thu, 7 Jan 2021 01:10:25 +0900 Subject: [PATCH] [NUI] fixed memory leak --- src/Tizen.NUI/src/public/Window.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Tizen.NUI/src/public/Window.cs b/src/Tizen.NUI/src/public/Window.cs index 9bd4af2..34b2961 100755 --- a/src/Tizen.NUI/src/public/Window.cs +++ b/src/Tizen.NUI/src/public/Window.cs @@ -1227,7 +1227,7 @@ namespace Tizen.NUI internal Vector2 GetSize() { - var val = new Uint16Pair(Interop.Window.GetSize(SwigCPtr), false); + var val = new Uint16Pair(Interop.Window.GetSize(SwigCPtr), true); Vector2 ret = new Vector2(val.GetWidth(), val.GetHeight()); val.Dispose(); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); @@ -1324,7 +1324,7 @@ namespace Tizen.NUI internal Size2D GetWindowSize() { - var val = new Uint16Pair(Interop.Window.GetSize(SwigCPtr), false); + var val = new Uint16Pair(Interop.Window.GetSize(SwigCPtr), true); Size2D ret = new Size2D(val.GetWidth(), val.GetHeight()); val.Dispose(); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); -- 2.7.4