[NUI] Rebase DevelNUI (#2507)
[platform/core/csapi/tizenfx.git] / src / Tizen.NUI / src / public / Visuals / ArcVisual.cs
index 7506ae2..b7e3528 100755 (executable)
@@ -141,12 +141,25 @@ namespace Tizen.NUI
             _outputVisualMap = null;
 
             base.ComposingPropertyMap();
+            PropertyValue temp = new PropertyValue((int)Visual.Type.Arc);
+            _outputVisualMap.Add(Visual.Property.Type, temp);
+            temp.Dispose();
 
-            _outputVisualMap.Add(Visual.Property.Type, new PropertyValue((int)Visual.Type.Arc));
-            _outputVisualMap.Add(ArcVisualProperty.Thickness, new PropertyValue(Thickness < 0.0f ? 0.0f : Thickness));
-            _outputVisualMap.Add(ArcVisualProperty.StartAngle, new PropertyValue(StartAngle));
-            _outputVisualMap.Add(ArcVisualProperty.SweepAngle, new PropertyValue(SweepAngle));
-            _outputVisualMap.Add(ArcVisualProperty.Cap, new PropertyValue((int)Cap));
+            temp = new PropertyValue(Thickness < 0.0f ? 0.0f : Thickness);
+            _outputVisualMap.Add(ArcVisualProperty.Thickness, temp);
+            temp.Dispose();
+
+            temp = new PropertyValue(StartAngle);
+            _outputVisualMap.Add(ArcVisualProperty.StartAngle, temp);
+            temp.Dispose();
+
+            temp = new PropertyValue(SweepAngle);
+            _outputVisualMap.Add(ArcVisualProperty.SweepAngle, temp);
+            temp.Dispose();
+
+            temp = new PropertyValue((int)Cap);
+            _outputVisualMap.Add(ArcVisualProperty.Cap, temp);
+            temp.Dispose();
         }
 
         #endregion Methods