mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-30 03:01:15 -03:00
Revert "Make io_buffer_t::out_buffer a raw pointer, initialize in io_buffer_t's constructor"
This reverts commit d48ffab9d67da48cf45c2f5560c21a767144545f. Conflicts: io.cpp io.h
This commit is contained in:
2
io.cpp
2
io.cpp
@@ -135,6 +135,7 @@ io_buffer_t *io_buffer_t::create(bool is_input)
|
||||
{
|
||||
bool success = true;
|
||||
io_buffer_t *buffer_redirect = new io_buffer_t(is_input ? 0 : 1, is_input);
|
||||
buffer_redirect->out_buffer_create();
|
||||
|
||||
if (exec_pipe(buffer_redirect->pipe_fd) == -1)
|
||||
{
|
||||
@@ -163,7 +164,6 @@ io_buffer_t *io_buffer_t::create(bool is_input)
|
||||
io_buffer_t::~io_buffer_t()
|
||||
{
|
||||
|
||||
delete out_buffer;
|
||||
/**
|
||||
If this is an input buffer, then io_read_buffer will not have
|
||||
been called, and we need to close the output fd as well.
|
||||
|
||||
Reference in New Issue
Block a user