Skip to content

Commit 9db33b7

Browse files
rolfbjarneCopilot
andcommitted
[CoreMidi] Fix MidiEventList cleanup cast.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent f6e675a commit 9db33b7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/CoreMidi/MidiEventList.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public MidiEventList (MidiProtocolId protocol, int size)
9191
midiDataPointer = (MIDIEventList*) Marshal.AllocHGlobal (midiDataSize);
9292
currentPacket = MIDIEventListInit (midiDataPointer, protocol);
9393
if (currentPacket is null) {
94-
Marshal.FreeHGlobal (midiDataPointer);
94+
Marshal.FreeHGlobal ((IntPtr) midiDataPointer);
9595
midiDataPointer = null;
9696
throw new Exception ($"Failed to create midi event list.");
9797
}

0 commit comments

Comments
 (0)