rescue more exceptions without aborting, try to free up memory on errors
authorgc <gc>
Sat, 31 May 2008 23:16:26 +0000 (23:16 +0000)
committergc <gc>
Sat, 31 May 2008 23:16:26 +0000 (23:16 +0000)
bin/booh-classifier

index 2b425b5..10f1bde 100644 (file)
@@ -444,8 +444,12 @@ class Entry
             if pixbuf.nil?
                 raise "Loaded pixbuf nil - #{path} #{image_path}"
             end
-        rescue Gdk::PixbufError
+        rescue
             msg 0, "Cannot load #{image_path}: #{$!}"
+            begin
+                loader.close
+            rescue
+            end
             return
         ensure
             if @type == 'video'