[haiku-commits] Re: haiku: hrev45779 - src/apps/people

  • From: Axel Dörfler <axeld@xxxxxxxxxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Sun, 23 Jun 2013 18:42:38 +0200

On 06/23/2013 01:50 AM, stpere@xxxxxxxxx wrote:
@@ -293,13 +292,19 @@ PersonView::IsSaved() const
  void
  PersonView::Save()
  {
+       BFile* file = new(std::nothrow) BFile(fRef, B_READ_WRITE);

Is there any reason not to put 'file' on the stack?

Bye,
   Axel.


Other related posts: