mirror of
https://github.com/holub/mame
synced 2025-04-23 00:39:36 +03:00
Remove stray bitmap_free's.
This commit is contained in:
parent
13c37d16c5
commit
ad12251785
@ -155,8 +155,7 @@ static void create_bitmap(running_machine *machine, int player)
|
||||
rgb_t color = crosshair_colors[player];
|
||||
|
||||
/* if we have a bitmap for this player, kill it */
|
||||
if (global.bitmap[player] != NULL)
|
||||
bitmap_free(global.bitmap[player]);
|
||||
global_free(global.bitmap[player]);
|
||||
|
||||
if (global.name[player][0] != 0)
|
||||
{
|
||||
@ -268,8 +267,7 @@ static void crosshair_exit(running_machine *machine)
|
||||
render_texture_free(global.texture[player]);
|
||||
global.texture[player] = NULL;
|
||||
|
||||
if (global.bitmap[player] != NULL)
|
||||
bitmap_free(global.bitmap[player]);
|
||||
global_free(global.bitmap[player]);
|
||||
global.bitmap[player] = NULL;
|
||||
}
|
||||
}
|
||||
|
@ -1881,7 +1881,7 @@ static bitmap_t *load_component_bitmap(const char *dirname, const char *file, co
|
||||
/* load the alpha bitmap if specified */
|
||||
if (render_load_png(OPTION_ARTPATH, dirname, alphafile, bitmap, hasalpha) == NULL)
|
||||
{
|
||||
bitmap_free(bitmap);
|
||||
global_free(bitmap);
|
||||
bitmap = NULL;
|
||||
}
|
||||
|
||||
|
@ -153,8 +153,7 @@ error:
|
||||
static void video_exit(running_machine *machine)
|
||||
{
|
||||
// free the overlay effect
|
||||
if (effect_bitmap != NULL)
|
||||
bitmap_free(effect_bitmap);
|
||||
global_free(effect_bitmap);
|
||||
effect_bitmap = NULL;
|
||||
|
||||
// free all of our monitor information
|
||||
|
@ -578,8 +578,7 @@ static void drawd3d_window_destroy(win_window_info *window)
|
||||
device_delete(d3d);
|
||||
|
||||
// experimental: free the vector PNG
|
||||
if (d3d->vector_bitmap != NULL)
|
||||
bitmap_free(d3d->vector_bitmap);
|
||||
global_free(d3d->vector_bitmap);
|
||||
|
||||
// free the memory in the window
|
||||
global_free(d3d);
|
||||
|
@ -149,8 +149,7 @@ void winvideo_init(running_machine *machine)
|
||||
static void winvideo_exit(running_machine *machine)
|
||||
{
|
||||
// free the overlay effect
|
||||
if (effect_bitmap != NULL)
|
||||
bitmap_free(effect_bitmap);
|
||||
global_free(effect_bitmap);
|
||||
effect_bitmap = NULL;
|
||||
|
||||
// free all of our monitor information
|
||||
|
Loading…
Reference in New Issue
Block a user