Waveform: manage reference to AudioReferenceData with a smart pointer features/large-files
authorGabriel M. Beddingfield <gabrbedd@gmail.com>
Mon, 15 Jul 2013 00:27:45 +0000 (17:27 -0700)
committerGabriel M. Beddingfield <gabrbedd@gmail.com>
Mon, 15 Jul 2013 00:27:45 +0000 (17:27 -0700)
commit9631bcf7b82ea7b670d9975efd7fb6906ac8279a
tree1e03bc2448e2d50ed1c3a5ef913a3014046a99bd
parent65a261d1a5a3a176758a1c07feac28553beebf29
Waveform: manage reference to AudioReferenceData with a smart pointer

Beforehand, Waveform was managing the pointer manually.  As a result,
it was not being deleted (leaking) with the Waveform was destroyed.
This patch now manages the pointer with an auto_ptr.

This also adds some documentation about how the transfer of ownership
is being handled.
src/AudioSource.hpp
src/Engine.cpp
src/StatusWidget.cpp
src/Waveform.cpp
src/Waveform.hpp