From d200744fbfb40fd5cd017c2222a44523f8ba12e6 Mon Sep 17 00:00:00 2001 From: couriersud Date: Mon, 16 May 2016 22:36:46 +0200 Subject: Converted more devices to new layout. Improved memory handling in factories. (nw) --- src/lib/netlist/nl_parser.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lib/netlist/nl_parser.cpp') diff --git a/src/lib/netlist/nl_parser.cpp b/src/lib/netlist/nl_parser.cpp index e3afd6d62a3..41060df73e6 100644 --- a/src/lib/netlist/nl_parser.cpp +++ b/src/lib/netlist/nl_parser.cpp @@ -158,7 +158,7 @@ void parser_t::net_truthtable_start() pstring def_param = get_string(); require_token(m_tok_param_right); - netlist::devices::netlist_base_factory_truthtable_t *ttd = netlist::devices::nl_tt_factory_create(ni, no, hs, + powned_ptr ttd = netlist::devices::nl_tt_factory_create(ni, no, hs, name, name, "+" + def_param); while (true) @@ -188,7 +188,7 @@ void parser_t::net_truthtable_start() require_token(token, m_tok_TRUTHTABLE_END); require_token(m_tok_param_left); require_token(m_tok_param_right); - m_setup.factory().register_device(ttd); + m_setup.factory().register_device(std::move(ttd)); return; } } -- cgit v1.2.3