| 113 | //----------------------------------------------------------------------------- |
| 114 | |
| 115 | OggTheoraDecoder::~OggTheoraDecoder() |
| 116 | { |
| 117 | // Free packets on the freelist. |
| 118 | |
| 119 | OggTheoraFrame* packet; |
| 120 | while( mFreePackets.tryPopFront( packet ) ) |
| 121 | destructSingle( packet ); |
| 122 | |
| 123 | // Clean up libtheora structures. |
| 124 | |
| 125 | if( mTheoraDecoder ) |
| 126 | th_decode_free( mTheoraDecoder ); |
| 127 | if( mTheoraSetup ) |
| 128 | th_setup_free( mTheoraSetup ); |
| 129 | |
| 130 | th_comment_clear( &mTheoraComment ); |
| 131 | th_info_clear( &mTheoraInfo ); |
| 132 | } |
| 133 | |
| 134 | //----------------------------------------------------------------------------- |
| 135 |
nothing calls this directly
no test coverage detected