From: Jay Freeman (saurik) Date: Tue, 8 Mar 2011 19:07:21 +0000 (-0800) Subject: Copy strings that might get yanked from under us. X-Git-Tag: v1.1.0%b2~7 X-Git-Url: https://git.saurik.com/cydia.git/commitdiff_plain/5aebc4ffb44e18bc163420f86c604d72bab23d3e Copy strings that might get yanked from under us. --- diff --git a/MobileCydia.mm b/MobileCydia.mm index 58fcd072..f5420afa 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -5092,12 +5092,15 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) { Source *source = [package source]; icon_ = [package icon]; - name_ = [package name]; + name_ = [NSString stringWithString:[package name]]; - if (IsWildcat_) - description_ = [package longDescription]; - if (description_ == nil) - description_ = [package shortDescription]; + NSString *description(nil); + if (description == nil && IsWildcat_) + description = [package longDescription]; + if (description == nil) + description = [package shortDescription]; + + description_ = [NSString stringWithString:description]; commercial_ = [package isCommercial];