Fix handle leak issue
[platform/core/csapi/uix-voice-control.git] / Tizen.Uix.VoiceControl / Tizen.Uix.VoiceControl / VoiceCommandList.cs
index c18ca21..c8bae3c 100755 (executable)
@@ -49,7 +49,7 @@ namespace Tizen.Uix.VoiceControl
         /// <exception cref="NotSupportedException"> This Exception can be due to Not Supported. </exception>
         public VoiceCommandList()
         {
-            SafeCommandListHandle handle = new SafeCommandListHandle();
+            SafeCommandListHandle handle;
             ErrorCode error = VcCmdListCreate(out handle);
             if (error != ErrorCode.None)
             {