summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/netlist/devices/nld_log.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/netlist/devices/nld_log.cpp')
-rw-r--r--src/lib/netlist/devices/nld_log.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/netlist/devices/nld_log.cpp b/src/lib/netlist/devices/nld_log.cpp
index f1dc4a93795..300c92288e1 100644
--- a/src/lib/netlist/devices/nld_log.cpp
+++ b/src/lib/netlist/devices/nld_log.cpp
@@ -17,7 +17,7 @@ NETLIB_START(log)
enregister("I", m_I);
pstring filename = pfmt("{1}.log")(name());
- m_strm = palloc(pofilestream(filename));
+ m_strm = std::make_unique<pofilestream>(filename);
}
NETLIB_RESET(log)
@@ -33,7 +33,6 @@ NETLIB_UPDATE(log)
NETLIB_NAME(log)::~NETLIB_NAME(log)()
{
m_strm->close();
- pfree(m_strm);
}
NETLIB_START(logD)