Squash a bunch of leaks

This commit is contained in:
ridiculousfish
2012-02-21 19:33:11 -08:00
parent e074ad4807
commit 5fe7c065dc
6 changed files with 31 additions and 35 deletions

2
io.cpp
View File

@@ -100,7 +100,7 @@ void io_buffer_read( io_data_t *d )
io_data_t *io_buffer_create( int is_input )
{
io_data_t *buffer_redirect = (io_data_t *)malloc( sizeof( io_data_t ));
io_data_t *buffer_redirect = new io_data_t();
buffer_redirect->io_mode=IO_BUFFER;
buffer_redirect->next=0;