Possibly-useful assert.
authorCarl Hetherington <carl@carlh.net>
Sat, 7 Aug 2010 23:29:22 +0000 (23:29 +0000)
committerCarl Hetherington <carl@carlh.net>
Sat, 7 Aug 2010 23:29:22 +0000 (23:29 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@7558 d708f5d6-7413-0410-9779-e7cbd77b26cf

libs/pbd/sndfile_manager.cc

index c6a52416ed44bbf3231739c5797fcded4b867ae8..5f08e634d68592ef07a4e9663992982c342c07be 100644 (file)
@@ -69,6 +69,7 @@ SndFileDescriptor::close ()
 {
        /* we must have a lock on the FileManager's mutex */
 
+       assert (_sndfile);
        sf_close (_sndfile);
        _sndfile = 0;
 }