summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2013-04-01 11:03:18 +0800
committerPeng Wu <alexepico@gmail.com>2013-04-01 11:03:18 +0800
commitbddc08bf7a8887fb26c563ef8abd0ba3a7a11e06 (patch)
tree7162623948bb5f22ebc0f7351f27fbbd93d09fd5 /tests
parent5c520717118df51ed6977e556fa846495419af24 (diff)
downloadlibpinyin-bddc08bf7a8887fb26c563ef8abd0ba3a7a11e06.tar.gz
libpinyin-bddc08bf7a8887fb26c563ef8abd0ba3a7a11e06.tar.xz
libpinyin-bddc08bf7a8887fb26c563ef8abd0ba3a7a11e06.zip
fixes test_memory_chunk.cpp
Diffstat (limited to 'tests')
-rw-r--r--tests/include/test_memory_chunk.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/include/test_memory_chunk.cpp b/tests/include/test_memory_chunk.cpp
index eefc357..dcee8a1 100644
--- a/tests/include/test_memory_chunk.cpp
+++ b/tests/include/test_memory_chunk.cpp
@@ -69,6 +69,9 @@ int main(int argc, char * argv[]){
printf("match\n");
}
+ delete chunk;
+ chunk = new MemoryChunk;
+
chunk->set_content(0, version, strlen(version) + 1);
chunk->save(filename);