[MetadataExtractor] Fix memory allocation
authorMinje Ahn <minje.ahn@samsung.com>
Thu, 3 Nov 2016 00:32:23 +0000 (09:32 +0900)
committerMinje Ahn <minje.ahn@samsung.com>
Thu, 3 Nov 2016 00:38:24 +0000 (09:38 +0900)
[Version] 1.0.6
[Profile] Common
[Issue Type] Bug fix

Change-Id: I24dc0743b717394743921dada641b2db272d4773
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
packaging/csapi-multimedia.spec
src/Tizen.Multimedia/MetadataExtractor/MetadataExtractor.cs

index eb871f2..34caf2f 100644 (file)
@@ -8,7 +8,7 @@
 
 Name:       csapi-multimedia
 Summary:    Tizen Multimedia API for C#
-Version:    1.0.5
+Version:    1.0.6
 Release:    0
 Group:      Development/Libraries
 License:    Apache-2.0
index 7c22401..6a7b0ce 100755 (executable)
@@ -68,8 +68,8 @@ namespace Tizen.Multimedia
                public MetadataExtractor(byte[] buffer)
                {
                        int ret;
-                       IntPtr buf = new IntPtr(0);
                        int size = buffer.Length;
+                       IntPtr buf = Marshal.AllocHGlobal(size);
 
                        if (buffer == null || size == 0)
                        {