Fix double deletion bug in kio_kzip, which causes nasty crashes in

apps like koffice.

Reported by, patch obtained from: Raphael Langerhorst
<raphael-langerhorst@gmx.at>

Approved by: portmgr (marcus)
This commit is contained in:
Michael Nottebrock 2005-04-01 21:49:50 +00:00
parent 45614d7d70
commit 7ce812d658
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=132140
4 changed files with 16 additions and 0 deletions

View file

@ -8,6 +8,7 @@
PORTNAME= kdelibs
PORTVERSION= ${KDE_VERSION}
PORTREVISION= 1
CATEGORIES= x11 kde
MASTER_SITES= ${MASTER_SITE_KDE}
MASTER_SITE_SUBDIR= stable/${PORTVERSION:S/.0//}/src

View file

@ -0,0 +1,7 @@
--- kio/kio/kzip.cpp #1.56:1.57
@@ -382,4 +382,5 @@ bool KZip::openArchive( int mode )
kdWarning(7040) << "KSaveFile creation for " << m_filename << " failed, " << strerror( d->m_saveFile->status() ) << endl;
delete d->m_saveFile;
+ d->m_saveFile = 0;
return false;
}

View file

@ -8,6 +8,7 @@
PORTNAME= kdelibs
PORTVERSION= ${KDE_VERSION}
PORTREVISION= 1
CATEGORIES= x11 kde
MASTER_SITES= ${MASTER_SITE_KDE}
MASTER_SITE_SUBDIR= stable/${PORTVERSION:S/.0//}/src

View file

@ -0,0 +1,7 @@
--- kio/kio/kzip.cpp #1.56:1.57
@@ -382,4 +382,5 @@ bool KZip::openArchive( int mode )
kdWarning(7040) << "KSaveFile creation for " << m_filename << " failed, " << strerror( d->m_saveFile->status() ) << endl;
delete d->m_saveFile;
+ d->m_saveFile = 0;
return false;
}