[haiku-commits] Re: haiku: hrev52055 - src/kits/media headers/os/media

  • From: Stefano Ceccherini <stefano.ceccherini@xxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Mon, 27 Aug 2018 11:44:39 +0200

Il giorno lun 27 ago 2018 alle ore 10:49 Stefano Ceccherini <
stefano.ceccherini@xxxxxxxxx> ha scritto:



I think that this could happen in the media_format copy constructor, at
least. We call Clear() on "this", and then the assignment operator.
The assignment operator calls the media_format destructor (for "this"),
but Clear() already set the metadata pointer / area id to NULL/-1 so
they're probably leaked.


Sorry, I read that wrong.
It's not leaked since it wasn't allocated.

Other related posts: