degal/commands/main.py
changeset 123 31c4a328ef96
parent 119 e7855eefb4c7
child 131 7021d949222c
--- 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) :
     """