Simplify and fix memory management
authorLars Knoll <lars.knoll@digia.com>
Wed, 2 Jan 2013 15:43:47 +0000 (16:43 +0100)
committerSimon Hausmann <simon.hausmann@digia.com>
Thu, 3 Jan 2013 11:12:36 +0000 (12:12 +0100)
commitb46c04669f32a360eb839ca3ec17e769a7494825
treed4f6a298d5cba7fc8961230250bd55b5c1e7e626
parent283e5efe5cc41767b9e0ad4ecae19d4b43f02582
Simplify and fix memory management

The old code could lead to crashes because we didn't correctly
check the alignment of objects in the managed heaps. A bogus
pointer on the stack (which can easily happen), can then
point into the middle of an object in the heap and cause
memory corruption.

Change-Id: I741401d278a7926a549810707ca46435bdaf7cc9
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
qv4mm.cpp
qv4mm.h