--- parser3/src/classes/image.C 2003/04/03 10:48:24 1.90.2.15.2.20 +++ parser3/src/classes/image.C 2003/09/01 07:12:23 1.92 @@ -5,7 +5,7 @@ Author: Alexandr Petrosian (http://paf.design.ru) */ -static const char* IDENT_IMAGE_C="$Date: 2003/04/03 10:48:24 $"; +static const char* IDENT_IMAGE_C="$Date: 2003/09/01 07:12:23 $"; /* jpegsize: gets the width and height (in pixels) of a jpeg file @@ -704,7 +704,7 @@ static void _measure(Request& r, MethodP Value* exif=0; const String* file_name; if(file_name=data.get_string()) { - File_measure_action_info info; + File_measure_action_info info={0}; info.width=&width; info.height=&height; info.exif=&exif; @@ -754,7 +754,7 @@ static void _html(Request& r, MethodPara if(params.count()) { // for backward compatibility: someday was ^html{} - Value& vattribs=r.process_to_value(*params[0], + Value& vattribs=r.process_to_value(params[0], /*0/*no name* /,*/ false/*don't intercept string*/); if(!vattribs.is_string()) // allow empty @@ -921,7 +921,7 @@ static void _replace(Request& r, MethodP 0, "coordinates must be table"); - gdImage::Point *all_p=new gdImage::Point[table->count()]; + gdImage::Point *all_p=new(PointerFreeGC) gdImage::Point[table->count()]; gdImage::Point *add_p=all_p; table->for_each(add_point, &add_p); image->FilledPolygonReplaceColor(all_p, table->count(), @@ -943,7 +943,7 @@ static void _polyline(Request& r, Method 0, "coordinates must be table"); - gdImage::Point* all_p=new gdImage::Point[table->count()]; + gdImage::Point* all_p=new(PointerFreeGC) gdImage::Point[table->count()]; gdImage::Point *add_p=all_p; table->for_each(add_point, &add_p); image->Polygon(all_p, table->count(), @@ -965,7 +965,7 @@ static void _polygon(Request& r, MethodP 0, "coordinates must be table"); - gdImage::Point* all_p=new gdImage::Point[table->count()]; + gdImage::Point* all_p=new(PointerFreeGC) gdImage::Point[table->count()]; gdImage::Point *add_p=all_p; table->for_each(add_point, &add_p); image->Polygon(all_p, table->count(), @@ -986,7 +986,7 @@ static void _polybar(Request& r, MethodP 0, "coordinates must be table"); - gdImage::Point* all_p=new gdImage::Point[table->count()]; + gdImage::Point* all_p=new(PointerFreeGC) gdImage::Point[table->count()]; gdImage::Point *add_p=all_p; table->for_each(add_point, &add_p); image->FilledPolygon(all_p, table->count(),