Skip to content

Commit

Permalink
KMSDRM: change calls free() to SDL_free() (Bug 4529)
Browse files Browse the repository at this point in the history
  • Loading branch information
1bsyl committed Mar 11, 2019
1 parent 2fd4aee commit 3b49ee5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/video/kmsdrm/SDL_kmsdrmvideo.c
Expand Up @@ -255,7 +255,7 @@ KMSDRM_FBDestroyCallback(struct gbm_bo *bo, void *data)
SDL_LogDebug(SDL_LOG_CATEGORY_VIDEO, "Delete DRM FB %u", fb_info->fb_id);
}

free(fb_info);
SDL_free(fb_info);
}

KMSDRM_FBInfo *
Expand Down Expand Up @@ -287,7 +287,7 @@ KMSDRM_FBFromBO(_THIS, struct gbm_bo *bo)

ret = KMSDRM_drmModeAddFB(vdata->drm_fd, w, h, 24, 32, stride, handle, &fb_info->fb_id);
if (ret < 0) {
free(fb_info);
SDL_free(fb_info);
return NULL;
}
SDL_LogDebug(SDL_LOG_CATEGORY_VIDEO, "New DRM FB (%u): %ux%u, stride %u from BO %p", fb_info->fb_id, w, h, stride, (void *)bo);
Expand Down

0 comments on commit 3b49ee5

Please sign in to comment.