From 68053d62806646fd2101b5a716fc3056e48e843c Mon Sep 17 00:00:00 2001 From: megacz Date: Mon, 25 Feb 2002 02:01:29 +0000 Subject: 2002-02-24 Adam Megacz * win32-threads.cc (_Jv_ThreadInitData): _Jv_Malloc instead of new * win32-threads.cc (_Jv_ThreadDestroyData): _Jv_Free instead of delete git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@50014 138bc75d-0d04-0410-961f-82ee72b054a4 --- libjava/win32-threads.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libjava/win32-threads.cc') diff --git a/libjava/win32-threads.cc b/libjava/win32-threads.cc index 1ae4de1055b..d31c1919a1e 100644 --- a/libjava/win32-threads.cc +++ b/libjava/win32-threads.cc @@ -173,7 +173,7 @@ _Jv_InitThreads (void) _Jv_Thread_t * _Jv_ThreadInitData (java::lang::Thread* obj) { - _Jv_Thread_t *data = new _Jv_Thread_t; + _Jv_Thread_t *data = (_Jv_Thread_t*)_Jv_Malloc(sizeof(_Jv_Thread_t)); data->flags = 0; data->thread_obj = obj; @@ -183,7 +183,7 @@ _Jv_ThreadInitData (java::lang::Thread* obj) void _Jv_ThreadDestroyData (_Jv_Thread_t *data) { - delete data; + _Jv_Free(data); } void -- cgit v1.2.1