author | ulf69 <ulf69> | 2004-08-20 01:16:22 (UTC) |
---|---|---|
committer | ulf69 <ulf69> | 2004-08-20 01:16:22 (UTC) |
commit | f7a401f03c18ef96eb40dc5540b31cd10880e845 (patch) (unidiff) | |
tree | f028d7dd67e34d00d44bd9af27b6e2c3dcd93cef /kabc/vcard | |
parent | d39b363278224b969d4c2945d32968c980b5d842 (diff) | |
download | kdepimpi-f7a401f03c18ef96eb40dc5540b31cd10880e845.zip kdepimpi-f7a401f03c18ef96eb40dc5540b31cd10880e845.tar.gz kdepimpi-f7a401f03c18ef96eb40dc5540b31cd10880e845.tar.bz2 |
bugfix: fixed a memoryleak in vCards while saving contacts
-rw-r--r-- | kabc/vcard/VCardEntity.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/kabc/vcard/VCardEntity.cpp b/kabc/vcard/VCardEntity.cpp index 0cd2086..5fca3bc 100644 --- a/kabc/vcard/VCardEntity.cpp +++ b/kabc/vcard/VCardEntity.cpp | |||
@@ -114,9 +114,16 @@ VCardEntity::cardList() | |||
114 | } | 114 | } |
115 | 115 | ||
116 | void | 116 | void |
117 | VCardEntity::setCardList(const VCardList & l) | 117 | VCardEntity::setCardList(const VCardList & l) |
118 | { | 118 | { |
119 | parse(); | 119 | parse(); |
120 | cardList_ = l; | 120 | //UScardList_ = l; |
121 | VCardListIterator it(l); | ||
122 | |||
123 | for (; it.current(); ++it) { | ||
124 | VCard* v = new VCard(*it.current()); | ||
125 | cardList_.append(v); | ||
126 | } | ||
127 | |||
121 | } | 128 | } |
122 | 129 | ||