Skip to content

Commit

Permalink
fixed webOS cursor file leak
Browse files Browse the repository at this point in the history
  • Loading branch information
mariotaku committed Oct 29, 2024
1 parent 369bc52 commit c2c288b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/video/wayland/SDL_waylandwebos_cursor.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,7 @@ SDL_Surface *WaylandWebOS_LoadCursorSurface(const char *type, const char *state)
return NULL;
}
surface = IMG_LoadPNG_RW(rw);
if (surface == NULL) {
SDL_RWclose(rw);
return NULL;
}
SDL_RWclose(rw);
return surface;
}

Expand Down

0 comments on commit c2c288b

Please sign in to comment.