]> granicus.if.org Git - imagemagick/commitdiff
Fixed copy paste mistake.
authorDirk Lemstra <dirk@lemstra.org>
Tue, 20 Aug 2019 18:26:15 +0000 (20:26 +0200)
committerDirk Lemstra <dirk@lemstra.org>
Tue, 20 Aug 2019 20:04:37 +0000 (22:04 +0200)
coders/png.c

index 0c04598bd831e9cb1e71bf78c4ee925d304d3bfe..9f61069ce8bd639ff56965e76ecec18e53b0d1a8 100644 (file)
@@ -8766,7 +8766,7 @@ static MagickBooleanType WriteOnePNGImage(MngInfo *mng_info,
               (void) LogMagickEvent(CoderEvent,GetMagickModule(),
               "    Freeing bogus colormap");
            (PixelInfo *) RelinquishMagickMemory(image->colormap);
-           image->colormap=(PixelPacket *) RelinquishMagickMemory(
+           image->colormap=(PixelInfo *) RelinquishMagickMemory(
              image->colormap);
         }
     }