summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Ohly <patrick.ohly@intel.com>2011-09-15 12:19:01 +0200
committerPatrick Ohly <patrick.ohly@intel.com>2011-09-15 12:26:32 +0200
commit06e95db4e63f45d5a4f5d127e4074aa611a17f66 (patch)
tree77f9d2197fa3331eebf04c1d4f3c42ff222570c4
parenta5c7d3c65df28212a0d560f06d3c959bc393b912 (diff)
DB_DataMerged (207): avoid double freelibsynthesis_3.4.0.16+syncevolution-1-1-99-7
When a merged item is added to the items which need to be sent with SendDBVersionOfItemAsServer(), the same item must not be freed again immediately because the send queue holds another pointer to it.
-rwxr-xr-xsrc/sysync/customimplds.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sysync/customimplds.cpp b/src/sysync/customimplds.cpp
index 9a179c7..f6ed50a 100755
--- a/src/sysync/customimplds.cpp
+++ b/src/sysync/customimplds.cpp
@@ -2901,7 +2901,7 @@ bool TCustomImplDS::implProcessItem(
}
else {
// augmented version was created in backend, fetch it now and add to list of items to be sent
- augmentedItemP = (TMultiFieldItem *)SendDBVersionOfItemAsServer(myitemP);
+ SendDBVersionOfItemAsServer(myitemP);
}
}
sta = LOCERR_OK; // otherwise, treat as ok