mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-17 11:38:49 +00:00
Fixed a rare crash on Raspberry Pi when creating a window
(cherry picked from commit 19d73016e8)
This commit is contained in:
parent
257de23efc
commit
5bd0eb068c
1 changed files with 8 additions and 4 deletions
|
|
@ -183,10 +183,14 @@ static SDL_MimeDataList *mime_data_list_find(struct wl_list *list,
|
|||
{
|
||||
SDL_MimeDataList *found = NULL;
|
||||
|
||||
SDL_MimeDataList *mime_list = NULL;
|
||||
wl_list_for_each (mime_list, list, link) {
|
||||
if (SDL_strcmp(mime_list->mime_type, mime_type) == 0) {
|
||||
found = mime_list;
|
||||
SDL_MimeDataList *item = NULL;
|
||||
wl_list_for_each (item, list, link) {
|
||||
if (!item->mime_type) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (SDL_strcmp(item->mime_type, mime_type) == 0) {
|
||||
found = item;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue