]> git.ipfire.org Git - thirdparty/cups-filters.git/commitdiff
libcupsfilters: In mupdftoraster() removed ppdClose()
authorTill Kamppeter <till.kamppeter@gmail.com>
Wed, 9 Feb 2022 17:14:52 +0000 (14:14 -0300)
committerTill Kamppeter <till.kamppeter@gmail.com>
Wed, 9 Feb 2022 17:14:52 +0000 (14:14 -0300)
Filter functions should not close the PPD data structure which they
get supplied with the filter data, to once avoid crashes if the filter
function is called in a chain with other filter functions and common
filter data structure, and second, the filterCUPSWrapper() closes the
PPD data structure by itself.

cupsfilters/mupdftoraster.c

index 32041677d303d94a9ef8153999b8d1758f8bd58d..4e84444d6357ccd500dbd79abe74c273c4b03ec7 100644 (file)
@@ -459,8 +459,7 @@ out:
     cupsArrayDelete(mupdf_args);
 
   free(icc_profile);
-  if (ppd)
-    ppdClose(ppd);
+
   if (fd >= 0)
     unlink(infilename);
   return status;