rmagick 1.11.0 → 1.11.1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of rmagick might be problematic. Click here for more details.
- data/ChangeLog +5 -0
- data/README.html +8 -8
- data/README.txt +6 -6
- data/configure +10 -10
- data/configure.ac +1 -1
- data/ext/RMagick/MANIFEST +1 -1
- data/ext/RMagick/extconf.rb.in +4 -0
- data/ext/RMagick/rmilist.c +26 -2
- data/ext/RMagick/rmimage.c +219 -7
- data/ext/RMagick/rminfo.c +8 -1
- data/ext/RMagick/rmmain.c +13 -2
- data/ext/RMagick/rmutil.c +10 -2
- data/rmagick.gemspec +1 -1
- metadata +2 -2
data/ext/RMagick/rminfo.c
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
/* $Id: rminfo.c,v 1.
|
1
|
+
/* $Id: rminfo.c,v 1.38 2006/05/27 21:05:59 rmagick Exp $ */
|
2
2
|
/*============================================================================\
|
3
3
|
| Copyright (C) 2006 by Timothy P. Hunter
|
4
4
|
| Name: rminfo.c
|
@@ -141,6 +141,8 @@ Info_aset(VALUE self, VALUE format, VALUE key, VALUE value)
|
|
141
141
|
GetExceptionInfo(&exception);
|
142
142
|
okay = AddDefinitions(info, definitions, &exception);
|
143
143
|
CHECK_EXCEPTION()
|
144
|
+
DestroyExceptionInfo(&exception);
|
145
|
+
|
144
146
|
if (!okay)
|
145
147
|
{
|
146
148
|
rb_warn("%.60s:%.1024s not defined - AddDefinitions failed.", format_p, key_p);
|
@@ -409,6 +411,8 @@ Info_define(int argc, VALUE *argv, VALUE self)
|
|
409
411
|
GetExceptionInfo(&exception);
|
410
412
|
okay = AddDefinitions(info, definitions, &exception);
|
411
413
|
CHECK_EXCEPTION()
|
414
|
+
DestroyExceptionInfo(&exception);
|
415
|
+
|
412
416
|
if (!okay)
|
413
417
|
{
|
414
418
|
rb_warn("%.*s not defined - AddDefinitions failed.", sizeof(definitions), definitions);
|
@@ -914,6 +918,8 @@ VALUE Info_format(VALUE self)
|
|
914
918
|
{
|
915
919
|
GetExceptionInfo(&exception);
|
916
920
|
magick_info = GetMagickInfo(info->magick, &exception);
|
921
|
+
DestroyExceptionInfo(&exception);
|
922
|
+
|
917
923
|
return magick_info ? rb_str_new2(magick_info->name) : Qnil;
|
918
924
|
}
|
919
925
|
|
@@ -939,6 +945,7 @@ Info_format_eq(VALUE self, VALUE magick)
|
|
939
945
|
mgk = STRING_PTR(magick);
|
940
946
|
m = GetMagickInfo(mgk, &exception);
|
941
947
|
CHECK_EXCEPTION()
|
948
|
+
DestroyExceptionInfo(&exception);
|
942
949
|
|
943
950
|
if (!m)
|
944
951
|
{
|
data/ext/RMagick/rmmain.c
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
/* $Id: rmmain.c,v 1.
|
1
|
+
/* $Id: rmmain.c,v 1.119 2006/05/27 21:05:59 rmagick Exp $ */
|
2
2
|
/*============================================================================\
|
3
3
|
| Copyright (C) 2006 by Timothy P. Hunter
|
4
4
|
| Name: rmmain.c
|
@@ -44,6 +44,8 @@ Magick_colors(VALUE class)
|
|
44
44
|
|
45
45
|
color_ary = GetColorInfoArray(&exception);
|
46
46
|
CHECK_EXCEPTION()
|
47
|
+
DestroyExceptionInfo(&exception);
|
48
|
+
|
47
49
|
|
48
50
|
if (rb_block_given_p())
|
49
51
|
{
|
@@ -87,6 +89,7 @@ Magick_colors(VALUE class)
|
|
87
89
|
|
88
90
|
color_info_list = GetColorInfoList("*", &number_colors, &exception);
|
89
91
|
CHECK_EXCEPTION()
|
92
|
+
DestroyExceptionInfo(&exception);
|
90
93
|
|
91
94
|
#endif
|
92
95
|
|
@@ -176,6 +179,7 @@ Magick_fonts(VALUE class)
|
|
176
179
|
GetExceptionInfo(&exception);
|
177
180
|
type_info = GetTypeInfoList("*", &number_types, &exception);
|
178
181
|
CHECK_EXCEPTION()
|
182
|
+
DestroyExceptionInfo(&exception);
|
179
183
|
|
180
184
|
#endif
|
181
185
|
|
@@ -210,6 +214,7 @@ Magick_fonts(VALUE class)
|
|
210
214
|
|
211
215
|
type_list = GetTypeInfo("*", &exception);
|
212
216
|
CHECK_EXCEPTION()
|
217
|
+
DestroyExceptionInfo(&exception);
|
213
218
|
|
214
219
|
// If block, iterate over fonts
|
215
220
|
if (rb_block_given_p())
|
@@ -282,6 +287,9 @@ Magick_init_formats(VALUE class)
|
|
282
287
|
|
283
288
|
GetExceptionInfo(&exception);
|
284
289
|
magick_info = (MagickInfo *)GetMagickInfoArray(&exception);
|
290
|
+
CHECK_EXCEPTION()
|
291
|
+
DestroyExceptionInfo(&exception);
|
292
|
+
|
285
293
|
for(m = magick_info; m != NULL; m = m->next)
|
286
294
|
{
|
287
295
|
rb_hash_aset(formats, rb_str_new2(m->name), MagickInfo_to_format(m));
|
@@ -310,6 +318,8 @@ Magick_init_formats(VALUE class)
|
|
310
318
|
GetExceptionInfo(&exception);
|
311
319
|
magick_info = GetMagickInfoList("*", &number_formats, &exception);
|
312
320
|
CHECK_EXCEPTION()
|
321
|
+
DestroyExceptionInfo(&exception);
|
322
|
+
|
313
323
|
#endif
|
314
324
|
|
315
325
|
for(x = 0; x < number_formats; x++)
|
@@ -333,6 +343,7 @@ Magick_init_formats(VALUE class)
|
|
333
343
|
GetExceptionInfo(&exception);
|
334
344
|
m = (MagickInfo *)GetMagickInfo("*", &exception);
|
335
345
|
CHECK_EXCEPTION()
|
346
|
+
DestroyExceptionInfo(&exception);
|
336
347
|
|
337
348
|
for ( ; m != NULL; m = m->next)
|
338
349
|
{
|
@@ -1775,7 +1786,7 @@ static void version_constants(void)
|
|
1775
1786
|
rb_define_const(Module_Magick, "Version", str);
|
1776
1787
|
|
1777
1788
|
sprintf(long_version,
|
1778
|
-
"This is %s ($Date: 2006/05/
|
1789
|
+
"This is %s ($Date: 2006/05/27 21:05:59 $) Copyright (C) 2006 by Timothy P. Hunter\n"
|
1779
1790
|
"Built with %s\n"
|
1780
1791
|
"Built for %s\n"
|
1781
1792
|
"Web page: http://rmagick.rubyforge.org\n"
|
data/ext/RMagick/rmutil.c
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
/* $Id: rmutil.c,v 1.
|
1
|
+
/* $Id: rmutil.c,v 1.76 2006/05/27 21:05:59 rmagick Exp $ */
|
2
2
|
/*============================================================================\
|
3
3
|
| Copyright (C) 2006 by Timothy P. Hunter
|
4
4
|
| Name: rmutil.c
|
@@ -484,6 +484,8 @@ Pixel_from_color(VALUE class, VALUE name)
|
|
484
484
|
GetExceptionInfo(&exception);
|
485
485
|
okay = QueryColorDatabase(STRING_PTR(name), &pp, &exception);
|
486
486
|
CHECK_EXCEPTION()
|
487
|
+
DestroyExceptionInfo(&exception);
|
488
|
+
|
487
489
|
if (!okay)
|
488
490
|
{
|
489
491
|
rb_raise(rb_eArgError, "invalid color name: %s", STRING_PTR(name));
|
@@ -553,6 +555,7 @@ Pixel_to_color(int argc, VALUE *argv, VALUE self)
|
|
553
555
|
(void) QueryColorname(image, pixel, compliance, name, &exception);
|
554
556
|
DestroyImage(image);
|
555
557
|
CHECK_EXCEPTION()
|
558
|
+
DestroyExceptionInfo(&exception);
|
556
559
|
|
557
560
|
// Always return a string, even if it's ""
|
558
561
|
return rb_str_new2(name);
|
@@ -979,6 +982,7 @@ PixelPacket_to_Color_Name(Image *image, PixelPacket *color)
|
|
979
982
|
|
980
983
|
(void) QueryColorname(image, color, X11Compliance, name, &exception);
|
981
984
|
CHECK_EXCEPTION()
|
985
|
+
DestroyExceptionInfo(&exception);
|
982
986
|
|
983
987
|
return rb_str_new2(name);
|
984
988
|
}
|
@@ -2940,6 +2944,7 @@ Image *rm_clone_image(Image *image)
|
|
2940
2944
|
rb_raise(rb_eNoMemError, "not enough memory to continue");
|
2941
2945
|
}
|
2942
2946
|
rm_check_exception(&exception, clone, DestroyOnError);
|
2947
|
+
DestroyExceptionInfo(&exception);
|
2943
2948
|
|
2944
2949
|
return clone;
|
2945
2950
|
}
|
@@ -3140,6 +3145,8 @@ rm_check_image_exception(Image *imglist, ErrorRetention retention)
|
|
3140
3145
|
{
|
3141
3146
|
rm_check_exception(&exception, imglist, retention);
|
3142
3147
|
}
|
3148
|
+
|
3149
|
+
DestroyExceptionInfo(&exception);
|
3143
3150
|
}
|
3144
3151
|
|
3145
3152
|
|
@@ -3198,7 +3205,8 @@ handle_exception(ExceptionInfo *exception, Image *imglist, ErrorRetention retent
|
|
3198
3205
|
msg[sizeof(msg)-1] = '\0';
|
3199
3206
|
rb_warning(msg);
|
3200
3207
|
|
3201
|
-
|
3208
|
+
// Caller deletes ExceptionInfo...
|
3209
|
+
|
3202
3210
|
return;
|
3203
3211
|
}
|
3204
3212
|
|
data/rmagick.gemspec
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
require 'date'
|
2
2
|
Gem::Specification.new do |s|
|
3
3
|
s.name = %q{rmagick}
|
4
|
-
s.version = "1.11.
|
4
|
+
s.version = "1.11.1"
|
5
5
|
s.date = Date.today.to_s
|
6
6
|
s.summary = %q{RMagick is an interface between the Ruby programming language and the ImageMagick and GraphicsMagick image processing libraries.}
|
7
7
|
s.description =<<DESCRIPTION
|
metadata
CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.8.11
|
|
3
3
|
specification_version: 1
|
4
4
|
name: rmagick
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 1.11.
|
7
|
-
date: 2006-05-
|
6
|
+
version: 1.11.1
|
7
|
+
date: 2006-05-28 00:00:00 -04:00
|
8
8
|
summary: RMagick is an interface between the Ruby programming language and the ImageMagick and GraphicsMagick image processing libraries.
|
9
9
|
require_paths:
|
10
10
|
- lib
|