[DllImport(lib, CallingConvention = CallingConvention.Cdecl, EntryPoint = "SDL_FreeSurface", ExactSpelling = true)]
public static extern void FreeSurface(IntPtr surface);
+ [SuppressUnmanagedCodeSecurity]
+ [DllImport (lib, CallingConvention = CallingConvention.Cdecl, EntryPoint = "SDL_free", ExactSpelling = true)]
+ public static extern void Free (IntPtr memblock);
+
#region GameContoller
[SuppressUnmanagedCodeSecurity]
if (windows.TryGetValue(ev.Drop.WindowID, out window))
{
ProcessDropEvent(window, ev.Drop);
+ SDL.Free(ev.Drop.File);
processed = true;
}
break;
byte [] byteArray = new byte[length];
Marshal.Copy(ev.File, byteArray, 0, length);
- string dropString = System.Text.Encoding.UTF8.GetString (byteArray);
+ string dropString = System.Text.Encoding.UTF8.GetString(byteArray);
window.OnDrop(dropString);
}