diff --git a/bindings/python/mapnik_image.cpp b/bindings/python/mapnik_image.cpp index 5d1dfb7aa..6afd55ec4 100644 --- a/bindings/python/mapnik_image.cpp +++ b/bindings/python/mapnik_image.cpp @@ -105,8 +105,8 @@ PyObject* tostring3(image_32 const & im, std::string const& format, mapnik::rgba void save_to_file1(mapnik::image_32 const& im, std::string const& filename, std::string const& type) { - boost::shared_ptr palette_ptr; - mapnik::save_to_file(im,filename,type,*palette_ptr); + mapnik::rgba_palette pal; + mapnik::save_to_file(im,filename,type,pal); } void save_to_file2(mapnik::image_32 const& im, std::string const& filename)