Merge pull request #861 from devmapal/master

Fixes segmentation fault on exiting rpcs3
This commit is contained in:
Alexandro Sánchez Bach 2014-11-15 01:41:47 +01:00
commit 4f30e014a4

View file

@ -333,6 +333,17 @@ public:
});
}
InstrBase(const InstrBase &source)
: InstrCaller<TO>(source)
, m_name(source.m_name)
, m_opcode(source.m_opcode)
, m_args_count(source.m_args_count)
, m_args(source.m_args_count ? new CodeFieldBase*[source.m_args_count] : nullptr)
{
for(int i = 0; i < source.m_args_count; ++i)
m_args[i] = source.m_args[i];
}
virtual ~InstrBase()
{
if (m_args) {