--- a/degal/commands/main.py Mon Jun 15 00:23:55 2009 +0300
+++ b/degal/commands/main.py Mon Jun 15 00:29:43 2009 +0300
@@ -35,6 +35,11 @@
"""
# XXX: handle this thumb-update/html-update stuff better
+
+ # render all HTML
+ for image in images :
+ render_image_html(ctx, image)
+
# render the thumbnails concurrently
for image in ctx.concurrent.execute(
@@ -48,14 +53,9 @@
) :
# log image path
ctx.log_info("%s", image)
-
- # then render all HTML
- for image in images :
- render_image_html(ctx, image)
# release large objects that are not needed anymore
- # XXX: verify that this works
- del image.img
+ image.cleanup()
def render_folder_html (ctx, folder) :
"""