Remove stray bitmap_free's.

This commit is contained in:
Aaron Giles 2010-06-08 23:40:57 +00:00
parent 13c37d16c5
commit ad12251785
5 changed files with 6 additions and 11 deletions

View File

@ -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;
}
}

View File

@ -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;
}

View File

@ -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

View File

@ -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);

View File

@ -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