Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Evergreen:11.1
kdepimlibs4
r880908.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File r880908.diff of Package kdepimlibs4
Subject: fix memleak in knode From: wstephenson@suse.de Bug: Patch-upstream: 880908 --- kmime/kmime_headers_p.h (revision 880907) +++ kmime/kmime_headers_p.h (revision 880908) @@ -34,6 +34,8 @@ class BasePrivate public: BasePrivate() : parent( 0 ) {} + virtual ~BasePrivate() {} + KMime::Content *parent; QByteArray encCS; }; --- kmime/kmime_content_p.h (revision 880907) +++ kmime/kmime_content_p.h (revision 880908) @@ -32,7 +32,7 @@ class ContentPrivate defaultCS = KMime::cachedCharset( "ISO-8859-1" ); } - ~ContentPrivate() + virtual ~ContentPrivate() { qDeleteAll( contents ); contents.clear(); --- kmime/kmime_headers.cpp (revision 880907) +++ kmime/kmime_headers.cpp (revision 880908) @@ -1190,9 +1190,6 @@ Generic::Generic( const char *t, Content Generic::~Generic() { - Q_D(Generic); - delete[] d->type; - d->type = 0; } void Generic::clear() Index: kmime/kmime_headers_p.h =================================================================== Index: kmime/kmime_content_p.h =================================================================== Index: kmime/kmime_headers.cpp ===================================================================
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor