From: Simon Hausmann Date: Thu, 13 Dec 2012 11:58:21 +0000 (+0100) Subject: Prevent accidental allocation of GC managed objects on the regular heap X-Git-Tag: upstream/5.2.1~669^2~659^2~684 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=73824a7b6fbaa91c02a3b0e88b1c86f3267c5f49;p=platform%2Fupstream%2Fqtdeclarative.git Prevent accidental allocation of GC managed objects on the regular heap Make the regular new operator private. As it turns out no other changes were required, all the existing objects are already allocated on the GC heap, thanks to the new* factor functions in ExecutionEngine. Change-Id: I9b69221b5bbc4491ca909ec6bb5afe0f3c010b54 Reviewed-by: Lars Knoll --- diff --git a/qmljs_objects.h b/qmljs_objects.h index 99e29fe..965b333 100644 --- a/qmljs_objects.h +++ b/qmljs_objects.h @@ -110,6 +110,7 @@ protected: virtual void getCollectables(QVector &objects) = 0; private: + void *operator new(size_t); friend class MemoryManager; MemoryManager *mm; };