Branch: Tag:

2010-04-27

2010-04-27 13:36:56 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Make sure to flush the image caches properly on shutdown.

Rev: server/modules/graphics/atlas.pike:1.22
Rev: server/modules/graphics/business.pike:1.158
Rev: server/modules/graphics/cimg.pike:1.88
Rev: server/modules/graphics/gbutton.pike:1.124
Rev: server/modules/graphics/graphic_text.pike:1.313
Rev: server/modules/graphics/gxml.pike:1.54

27:   // must also be aligned left or right.       - constant cvs_version = "$Id: gbutton.pike,v 1.123 2009/12/01 18:06:38 grubba Exp $"; + constant cvs_version = "$Id: gbutton.pike,v 1.124 2010/04/27 13:36:56 grubba Exp $";   constant thread_safe = 1;      #include <module.h>
244:    do_ext = query("ext");   }    + void stop() + { +  destruct(button_cache); + } +    string status() {    array s=button_cache->status();    return sprintf("<b>Images in cache:</b> %d images<br />\n"