summaryrefslogtreecommitdiff
path: root/libjava/win32-threads.cc
diff options
context:
space:
mode:
authormegacz <megacz@138bc75d-0d04-0410-961f-82ee72b054a4>2002-02-25 02:01:29 +0000
committermegacz <megacz@138bc75d-0d04-0410-961f-82ee72b054a4>2002-02-25 02:01:29 +0000
commit68053d62806646fd2101b5a716fc3056e48e843c (patch)
tree6aa5ab51437bb65b9713341a29ce82a68d9ddd3d /libjava/win32-threads.cc
parentc1de4682feb4d9d6342b022d5ac3d0f17c3e3769 (diff)
downloadgcc-68053d62806646fd2101b5a716fc3056e48e843c.tar.gz
2002-02-24 Adam Megacz <adam@xwt.org>
* 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
Diffstat (limited to 'libjava/win32-threads.cc')
-rw-r--r--libjava/win32-threads.cc4
1 files changed, 2 insertions, 2 deletions
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