From aa8f4373e0c9614b7d64a5760c0fa071b1c1edc9 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 21 Jul 2012 11:11:20 +0000 Subject: - MZeroedObject used instead of the operator new() inlining - SAFE_DELETE of local objects removed from ICQ git-svn-id: http://svn.miranda-ng.org/main/trunk@1092 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/AVS/src/commonheaders.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'plugins/AVS') diff --git a/plugins/AVS/src/commonheaders.h b/plugins/AVS/src/commonheaders.h index 26986e89a6..c4b459d8dc 100644 --- a/plugins/AVS/src/commonheaders.h +++ b/plugins/AVS/src/commonheaders.h @@ -88,11 +88,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ // The same fields as avatarCacheEntry + proto name -struct protoPicCacheEntry : public avatarCacheEntry +struct protoPicCacheEntry : public avatarCacheEntry, public MZeroedObject { - __inline void* operator new( size_t size ) { return mir_alloc( size ); } - __inline void operator delete( void* p ) { mir_free( p ); } - protoPicCacheEntry() { memset(this, 0, sizeof(*this)); }; ~protoPicCacheEntry(); -- cgit v1.2.3