[NUI] fix CA2000 Warning for proterty
[platform/core/csapi/tizenfx.git] / src / Tizen.NUI / src / public / Utility / TextPageUtil.cs
index 7aa78b2..eaf0e0a 100755 (executable)
@@ -131,7 +131,9 @@ namespace Tizen.NUI.Utility
             uint count = cutOffIndexArray.Count();
             for (uint i = 0; i < count; i++)
             {
-                cutOffIndexArray.GetElementAt(i).Get(out cutOffIndex); // Gets the last index of text shown on the actual screen.
+                var temp = cutOffIndexArray.GetElementAt(i);
+                temp.Get(out cutOffIndex); // Gets the last index of text shown on the actual screen.
+                temp.Dispose();
 
                 // If markup is enabled, It should parse markup
                 if (label.EnableMarkup)