aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/json.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/json.h b/include/json.h
index 27e621e..9f06244 100644
--- a/include/json.h
+++ b/include/json.h
@@ -131,6 +131,8 @@ namespace crow
s_ = r.s_;
e_ = r.e_;
owned_ = r.owned_;
+ if (r.owned_)
+ r.owned_ = 0;
return *this;
}