comparison sample.cpp @ 411:ad2206c24986 api-inversion

Fix a memory corruption bug. When allocating the adb_t in audiodb_open(), zero the memory; then we're not going to try to free() or delete some arbitrary uninitialized thing if the thing that we're opening turns out not to be an audiodb database.
author mas01cr
date Thu, 11 Dec 2008 08:54:06 +0000
parents 2d5c3f8e8c22
children 0c1c8726a79b
comparison
equal deleted inserted replaced
410:d7e590d58c85 411:ad2206c24986