image-file 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,12 @@
1
1
  image-file release history
2
2
  ==========================
3
3
 
4
+ 0.1.2 / 2010-12-18
5
+ ------------------
6
+
7
+ * Bug fixs
8
+ * prevent to collect temprary buffer by GC.
9
+
4
10
  0.1.1 / 2010-12-17
5
11
  ------------------
6
12
 
@@ -320,7 +320,7 @@ fill_input_buffer(j_decompress_ptr cinfo)
320
320
  }
321
321
  WARNMS(cinfo, JWRN_JPEG_EOF);
322
322
  /* Insert fake EOI marker */
323
- reader->buffer = rb_str_tmp_new(2);
323
+ RB_GC_GUARD(reader->buffer) = rb_str_tmp_new(2);
324
324
  RSTRING_PTR(reader->buffer)[0] = (JOCTET) 0xFF;
325
325
  RSTRING_PTR(reader->buffer)[1] = (JOCTET) JPEG_EOI;
326
326
  }
@@ -848,11 +848,11 @@ jpeg_reader_read_image(int argc, VALUE* argv, VALUE obj)
848
848
  image = rb_funcall(cImageFileImage, id_new, 1, params);
849
849
  image_buffer = rb_image_file_image_get_buffer(image);
850
850
 
851
- row_buffer = rb_str_tmp_new(sizeof(JSAMPROW)*ht);
851
+ RB_GC_GUARD(row_buffer) = rb_str_tmp_new(sizeof(JSAMPROW)*ht);
852
852
  rows = (JSAMPARRAY)(RSTRING_PTR(row_buffer));
853
853
 
854
854
  nc = (long)reader->cinfo.output_components;
855
- sample_buffer = rb_str_tmp_new(sizeof(JSAMPLE)*ht*wd*nc);
855
+ RB_GC_GUARD(sample_buffer) = rb_str_tmp_new(sizeof(JSAMPLE)*ht*wd*nc);
856
856
  for (i = 0; i < ht; ++i)
857
857
  rows[i] = (JSAMPROW)(RSTRING_PTR(sample_buffer) + i*wd*nc);
858
858
 
@@ -2,7 +2,7 @@ module ImageFile
2
2
  module Version
3
3
  MAJOR = 0
4
4
  MINOR = 1
5
- MICRO = 1
5
+ MICRO = 2
6
6
  STRING = [MAJOR, MINOR, MICRO].join('.')
7
7
  end
8
8
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 1
9
- version: 0.1.1
8
+ - 2
9
+ version: 0.1.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Kenta Murata
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-12-17 00:00:00 +09:00
17
+ date: 2010-12-18 00:00:00 +09:00
18
18
  default_executable:
19
19
  dependencies: []
20
20
 
@@ -70,7 +70,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
70
70
  requirements:
71
71
  - - ">="
72
72
  - !ruby/object:Gem::Version
73
- hash: 416281435884097203
73
+ hash: -3664447283332450460
74
74
  segments:
75
75
  - 0
76
76
  version: "0"
@@ -79,7 +79,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - ">="
81
81
  - !ruby/object:Gem::Version
82
- hash: 416281435884097203
82
+ hash: -3664447283332450460
83
83
  segments:
84
84
  - 0
85
85
  version: "0"
@@ -89,7 +89,7 @@ rubyforge_project:
89
89
  rubygems_version: 1.3.7
90
90
  signing_key:
91
91
  specification_version: 3
92
- summary: image-file-0.1.1
92
+ summary: image-file-0.1.2
93
93
  test_files:
94
94
  - spec/image_file/image_spec.rb
95
95
  - spec/image_file/jpeg_reader_spec.rb