Changeset 7863
- Timestamp:
- 05/10/12 21:56:24 (13 months ago)
- Location:
- ImageMagick/trunk
- Files:
-
- 4 edited
-
MagickCore/resample.c (modified) (1 diff)
-
MagickCore/utility.c (modified) (1 diff)
-
MagickWand/magick-cli.c (modified) (2 diffs)
-
MagickWand/operation.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ImageMagick/trunk/MagickCore/resample.c
r7779 r7863 1324 1324 #endif 1325 1325 { 1326 if (I sStringTrue(GetImageArtifact(resample_filter->image,1326 if (IfStringTrue(GetImageArtifact(resample_filter->image, 1327 1327 "resample:verbose")) ) 1328 1328 { -
ImageMagick/trunk/MagickCore/utility.c
r7701 r7863 700 700 % Which provide their own '@' meta-character handling. 701 701 % 702 % You can see the results of the expansion using "Configure" log 703 % events. 704 % 705 % 706 % The returned list should be freed using DestroyStringList(). 707 % 708 % However the strings in the original pointed to argv are not 709 % freed (TO BE CHECKED). So a copy of the original pointer (and count) 710 % should be kept separate if they need to be freed later. 711 % 702 712 % 703 713 % The format of the ExpandFilenames function is: -
ImageMagick/trunk/MagickWand/magick-cli.c
r7751 r7863 687 687 i; 688 688 689 if (IfMagickFalse( ExpandFilenames(&argc,&argv)))689 if (IfMagickFalse( ExpandFilenames(&argc,&argv) )) 690 690 ThrowFileException(exception,ResourceLimitError,"MemoryAllocationFailed", 691 691 GetExceptionMessage(errno)); … … 726 726 ReadCommandlLine(argc,&argv); 727 727 728 #if 0729 status=ExpandFilenames(&argc,&argv);730 if ( IfMagickFalse(status) )731 ThrowConvertException(ResourceLimitError,"MemoryAllocationFailed",732 GetExceptionMessage(errno));733 #endif734 735 728 /* Initialize special "CLI Wand" to hold images and settings (empty) */ 736 729 cli_wand=AcquireMagickCLI(image_info,exception); -
ImageMagick/trunk/MagickWand/operation.c
r7713 r7863 4280 4280 #if 0 4281 4281 /* Directly read 'arg1' without filename expansion handling (see below). 4282 This does NOT turn off the 'coder:' prefix, or '[...]' read modifiers.4283 4282 */ 4284 4283 # if !USE_WAND_METHODS … … 4319 4318 argv = (char **) &arg1; 4320 4319 4321 if (IfMagickFalse(ExpandFilenames(&argc,&argv))) 4320 /* Expand 'glob' expressions in the given filename. 4321 Expansion handles any 'coder:' prefix, or read modifiers attached 4322 to the filename, including them in the resulting expanded list. 4323 */ 4324 if (IfMagickFalse( ExpandFilenames(&argc,&argv) )) 4322 4325 CLIWandExceptArgReturn(ResourceLimitError,"MemoryAllocationFailed", 4323 4326 option,GetExceptionMessage(errno)); … … 4336 4339 AppendImageToList(&_images, new_images); 4337 4340 } 4338 /* FUTURE: how do I free the expanded filename array memory ??? */ 4339 //argv=DestroyStringList(argv); /* Is this correct? */ 4341 argv=DestroyStringList(argv); /* Destroy the Expanded Filename list */ 4340 4342 #endif 4341 4343 return;
Note: See TracChangeset
for help on using the changeset viewer.
