call tile_cache_exit() before tile_swap_exit(). tile_cache_exit() may use
2007-06-13 Sven Neumann <sven@gimp.org> * app/base/base.c (base_exit): call tile_cache_exit() before tile_swap_exit(). tile_cache_exit() may use the tile swap in pathological cases. * app/base/tile-cache.c (tile_cache_exit): warn if the tile cache is not empty. svn path=/trunk/; revision=22772
This commit is contained in:

committed by
Sven Neumann

parent
39fb488662
commit
c5a48bbea0
@ -1,3 +1,12 @@
|
|||||||
|
2007-06-13 Sven Neumann <sven@gimp.org>
|
||||||
|
|
||||||
|
* app/base/base.c (base_exit): call tile_cache_exit() before
|
||||||
|
tile_swap_exit(). tile_cache_exit() may use the tile swap in
|
||||||
|
pathological cases.
|
||||||
|
|
||||||
|
* app/base/tile-cache.c (tile_cache_exit): warn if the tile cache
|
||||||
|
is not empty.
|
||||||
|
|
||||||
2007-06-13 Sven Neumann <sven@gimp.org>
|
2007-06-13 Sven Neumann <sven@gimp.org>
|
||||||
|
|
||||||
* app/base/tile-cache.c: minor cleanup.
|
* app/base/tile-cache.c: minor cleanup.
|
||||||
|
@ -126,8 +126,8 @@ base_exit (void)
|
|||||||
|
|
||||||
pixel_processor_exit ();
|
pixel_processor_exit ();
|
||||||
paint_funcs_free ();
|
paint_funcs_free ();
|
||||||
tile_swap_exit ();
|
|
||||||
tile_cache_exit ();
|
tile_cache_exit ();
|
||||||
|
tile_swap_exit ();
|
||||||
|
|
||||||
g_signal_handlers_disconnect_by_func (base_config,
|
g_signal_handlers_disconnect_by_func (base_config,
|
||||||
base_tile_cache_size_notify,
|
base_tile_cache_size_notify,
|
||||||
|
@ -92,6 +92,9 @@ tile_cache_exit (void)
|
|||||||
idle_swapper = 0;
|
idle_swapper = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (cur_cache_size > 0)
|
||||||
|
g_warning ("tile cache not empty (%ld bytes left)", cur_cache_size);
|
||||||
|
|
||||||
tile_cache_set_size (0);
|
tile_cache_set_size (0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user