Skip to content

Commit 7ab41f0

Browse files
committed
SDL: Don't touch linked list entries that have been free'd.
1 parent 6eae6af commit 7ab41f0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

dirksimple_sdl.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,9 @@ static void SDLCALL audio_callback(void *userdata, Uint8 *stream, int len)
149149
GPlayingWaves = next;
150150
}
151151
DirkSimple_free(pw);
152+
} else {
153+
prev = pw;
152154
}
153-
prev = pw;
154155
pw = next;
155156
}
156157
}

0 commit comments

Comments
 (0)