don't disown (allocator may not be the same)

master
Daniel Kolesa 2015-11-08 13:45:59 +00:00
parent ccaae1e418
commit 98e99f7c49
1 changed files with 1 additions and 2 deletions

View File

@ -473,8 +473,7 @@ int main(int argc, char **argv) {
ret += it;
}
}
cs.result->set_str(ret.iter());
ret.disown();
cs.result->set_str_dup(ret);
});
os.cs.add_command("invoke", "s", [](CsState &cs, const char *name) {