diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2009-04-24 21:53:06 +0000 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2010-09-30 07:13:14 +0000 |
commit | 20cb1497dc6be5c6f6af8fd79a04ec8aed24df48 (patch) | |
tree | 7845f14be2db38a1855446c6256e4ebc7e7273c6 | |
parent | b62612d455418a28dc51e86290c43e2dda4e6fa5 (diff) |
Fixed memory retain issue in _H<> and a crash bug in sources_ (causing nils).
-rw-r--r-- | Cydia.mm | 10 | ||||
-rw-r--r-- | control | 2 | ||||
-rwxr-xr-x | make.sh | 2 |
3 files changed, 10 insertions, 4 deletions
@@ -1,5 +1,5 @@ /* Cydia - iPhone UIKit Front-End for Debian APT - * Copyright (C) 2008 Jay Freeman (saurik) + * Copyright (C) 2008-2009 Jay Freeman (saurik) */ /* @@ -216,6 +216,11 @@ class _H { } public: + _finline _H(const This_ &rhs) : + value_(rhs.value_ == nil ? nil : [rhs.value_ retain]) + { + } + _finline _H(Type_ *value = NULL, bool mended = false) : value_(value) { @@ -3428,7 +3433,8 @@ static NSArray *Finishes_; } - (Source *) getSource:(pkgCache::PkgFileIterator)file { - return sources_[file->ID]; + SourceMap::const_iterator i(sources_.find(file->ID)); + return i == sources_.end() ? nil : i->second; } @end @@ -5,7 +5,7 @@ Maintainer: Jay Freeman (saurik) <saurik@saurik.com> Architecture: iphoneos-arm Version: 1.0.2847-1 Replaces: com.sosiphone.addcydia -Depends: apr, apt (>= 0.7.20.2-20), darwintools, pcre, shell-cmds, system-cmds +Depends: apr, apt7, darwintools, pcre, shell-cmds, system-cmds Pre-Depends: dpkg (>= 1.14.25-8) Conflicts: com.sosiphone.addcydia Description: graphical iPhone front-end for APT @@ -1,2 +1,2 @@ #!/bin/bash -/apl/tel/exec.sh :apr:apt:pcre make package +/apl/tel/exec.sh :apr:apr-lib:apt7:pcre make package |