[PATCH] kprinter memory leak (BR62945)

Waldo Bastian bastian at kde.org
Wed Jan 14 12:00:58 GMT 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I think I saw this patch before but I can't find it anywhere and it's not in 
CVS. Should fix BR62945

Index: ipprequest.cpp
===================================================================
RCS file: /home/kde/kdelibs/kdeprint/cups/ipprequest.cpp,v
retrieving revision 1.28
diff -u -r1.28 ipprequest.cpp
- --- ipprequest.cpp	4 Jan 2004 17:52:28 -0000	1.28
+++ ipprequest.cpp	14 Jan 2004 11:46:50 -0000
@@ -152,6 +152,7 @@
 	lang->encoding = CUPS_UTF8;
 	ippAddString(request_, IPP_TAG_OPERATION, IPP_TAG_CHARSET, 
"attributes-charset", NULL, cupsLangEncoding(lang));
 	ippAddString(request_, IPP_TAG_OPERATION, IPP_TAG_LANGUAGE, 
"attributes-natural-language", NULL, lang->language);
+	cupsLangFree(lang);
 }
 
 void IppRequest::addString_p(int group, int type, const QString& name, const 
QString& value)


- -- 
bastian at kde.org -=|[ KDE: K Desktop for the Enterprise ]|=- bastian at suse.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQFABS96N4pvrENfboIRAvjZAKCiDMmixQ+TW41VU20JAtXlMNQ8yACfY1R/
IwFXLAidsXAn+KOFvOnIbAM=
=DYpR
-----END PGP SIGNATURE-----




More information about the kde-core-devel mailing list