summaryrefslogtreecommitdiffstats
path: root/lib/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'lib/plugins')
-rwxr-xr-xlib/plugins/rfpdf/lib/tcpdf.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/plugins/rfpdf/lib/tcpdf.rb b/lib/plugins/rfpdf/lib/tcpdf.rb
index 287e81bb7..83996bd09 100755
--- a/lib/plugins/rfpdf/lib/tcpdf.rb
+++ b/lib/plugins/rfpdf/lib/tcpdf.rb
@@ -2981,8 +2981,9 @@ class TCPDF
if (colspace=='Indexed' and pal.empty?)
Error('Missing palette in ' + file);
end
- f.close
return {'w' => w, 'h' => h, 'cs' => colspace, 'bpc' => bpc, 'f'=>'FlateDecode', 'parms' => parms, 'pal' => pal, 'trns' => trns, 'data' => data}
+ ensure
+ f.close
end
#