diff options
author | Mike Buland <eichlan@xagasoft.com> | 2011-03-02 21:05:10 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2011-03-02 21:05:10 +0000 |
commit | 6d82703f1504bf39a6c6a9eed4a307aa3ca3da7a (patch) | |
tree | 192fa6d1e86285b0842b275e902aaa9d509e36ad /src/cache.h | |
parent | 66669b2b9d392f6ae8f2c2a6acf7752bc0b6bc7e (diff) | |
download | libbu++-6d82703f1504bf39a6c6a9eed4a307aa3ca3da7a.tar.gz libbu++-6d82703f1504bf39a6c6a9eed4a307aa3ca3da7a.tar.bz2 libbu++-6d82703f1504bf39a6c6a9eed4a307aa3ca3da7a.tar.xz libbu++-6d82703f1504bf39a6c6a9eed4a307aa3ca3da7a.zip |
Corrected a memory leak in Bu::Client, and hopefully sped up transmission some,
there's one more fix I can make later to really speed up transmission, but it's
a little more delicate.
Also, Cache::Ptr objects are now camparable even when unbound.
Diffstat (limited to 'src/cache.h')
-rw-r--r-- | src/cache.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cache.h b/src/cache.h index 926556d..d4b1900 100644 --- a/src/cache.h +++ b/src/cache.h | |||
@@ -154,12 +154,12 @@ namespace Bu | |||
154 | 154 | ||
155 | bool operator==( const Ptr &rRhs ) const | 155 | bool operator==( const Ptr &rRhs ) const |
156 | { | 156 | { |
157 | return pData == rRhs.pData; | 157 | return pCache == rRhs.pCache && kId == rRhs.kId; |
158 | } | 158 | } |
159 | 159 | ||
160 | bool operator!=( const Ptr &rRhs ) const | 160 | bool operator!=( const Ptr &rRhs ) const |
161 | { | 161 | { |
162 | return pData != rRhs.pData; | 162 | return pCache != rRhs.pCache || kId != rRhs.kId; |
163 | } | 163 | } |
164 | 164 | ||
165 | private: | 165 | private: |