Ticket #1459: pes_alloc-fix.patch
File pes_alloc-fix.patch, 839 bytes (added by , 19 years ago) |
---|
-
libs/libmythtv/mpeg/pespacket.cpp
174 174 alloc188.erase(ptr); 175 175 free188.push_back(ptr); 176 176 // free the allocator only if more than 1 block was used 177 if ( mem188.size() > 1)177 if (alloc188.size() == 0 && mem188.size() > 1) 178 178 { 179 179 vector<unsigned char*>::iterator it; 180 180 for (it = mem188.begin(); it != mem188.end(); ++it) … … 232 232 #endif 233 233 234 234 // free the allocator only if more than 1 block was used 235 if ( mem4096.size() > 1)235 if (alloc4096.size() == 0 && mem4096.size() > 1) 236 236 { 237 237 vector<unsigned char*>::iterator it; 238 238 for (it = mem4096.begin(); it != mem4096.end(); ++it)