← Back to team overview

zorba-coders team mailing list archive

[Merge] lp:~paul-lucas/zorba/bug-944826 into lp:zorba

 

Paul J. Lucas has proposed merging lp:~paul-lucas/zorba/bug-944826 into lp:zorba.

Requested reviews:
  Matthias Brantner (matthias-brantner)
  Markos Zaharioudakis (markos-za)
Related bugs:
  Bug #944826 in Zorba: "Incorrect use of delete[] in ptr_rep"
  https://bugs.launchpad.net/zorba/+bug/944826

For more details, see:
https://code.launchpad.net/~paul-lucas/zorba/bug-944826/+merge/95589

Set dispose_data_using_delete_ = false in reserve().
-- 
https://code.launchpad.net/~paul-lucas/zorba/bug-944826/+merge/95589
Your team Zorba Coders is subscribed to branch lp:zorba.
=== modified file 'src/util/string/ptr_rep.tcc'
--- src/util/string/ptr_rep.tcc	2011-07-16 23:23:56 +0000
+++ src/util/string/ptr_rep.tcc	2012-03-02 15:32:20 +0000
@@ -169,6 +169,7 @@
     pointer const p = clone_data_only( alloc, cap );
     dispose_data_only( alloc );
     p_ = p;
+    dispose_data_using_delete_ = false;
     this->cap_ = cap;
   }
   return this;


Follow ups