Otherwise the QByteArray's constData might have been relocated, and the
output might be anything but correct (e.g. empty).
Change-Id: I2eb1223d2e0577f41c8f9e6ce81cb65af05166da
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
WTF::setDataFile(stderr);
#if (OS(LINUX) && !defined(Q_OS_ANDROID)) || OS(MAC_OS_X)
+ fclose(disasmStream);
# if OS(MAC_OS_X)
char *disasmOutput = memStream.buf.data();
# endif
- fclose(disasmStream);
# if CPU(X86) || CPU(X86_64)
QHash<void*, String*> idents;
printDisassembledOutputWithCalls(disasmOutput, functions, _vmFunction->identifiers);