Fix wrong usage of free in d3d9/d3d.cpp. Should be delete.

This commit is contained in:
Lioncash 2014-02-22 17:19:47 -05:00
parent a685a5fc7e
commit fb9959d338

View File

@ -1092,7 +1092,7 @@ static void *d3d_init(const video_info_t *info, const input_driver_t **input,
vid->ctx_driver = d3d_get_context();
if (!vid->ctx_driver)
{
free(vid);
delete vid;
return NULL;
}
@ -1113,7 +1113,7 @@ static void *d3d_init(const video_info_t *info, const input_driver_t **input,
if (!d3d_construct(vid, info, input, input_data))
{
RARCH_ERR("[D3D]: Failed to init D3D.\n");
free(vid);
delete vid;
return NULL;
}