diff --git a/libs/evoral/src/libsmf/smf.c b/libs/evoral/src/libsmf/smf.c index 7b623210e9..67cc7b889e 100644 --- a/libs/evoral/src/libsmf/smf.c +++ b/libs/evoral/src/libsmf/smf.c @@ -136,7 +136,7 @@ smf_track_delete(smf_track_t *track) /* Remove all the events */ unsigned int i; for (i = 0; i < track->events_array->len; ++i) { - smf_event_t* ev = g_ptr_array_index(track->events_array, i); + smf_event_t* ev = (smf_event_t*)g_ptr_array_index(track->events_array, i); free (ev->midi_buffer); free (ev); }