[cups.bugs] [LOW] STR #3068: Reference counting required for MIME type objects

twaugh.redhat twaugh at redhat.com
Tue Jan 20 11:01:08 PST 2009


DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

Hi,

I'm attaching a patch to add a reference count to the MIME type data
structure.

This is required because mimeAddType() will return an existing entry if
available.  In some unusual situations, such as when the printers.conf
file lists two identically-named printers, this will result in a MIME type
entry being deleted twice on reload.

See https://bugzilla.redhat.com/show_bug.cgi?id=453099 for the original
report.

Link: http://www.cups.org/str.php?L3068
Version: 1.4b2
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: mime-refcount.patch
URL: <http://lists.cups.org/pipermail/cups-devel/attachments/20090120/d10e5626/attachment.ksh>


More information about the cups-devel mailing list