From e9a271ef50b8546056271dffdf4c3ec4d55d0d39 Mon Sep 17 00:00:00 2001
From: Mattia Basaglia <mattia.basaglia@gmail.com>
Date: Wed, 29 Jul 2015 10:17:20 +0200
Subject: [PATCH] Remove some undefined functions

---
 libs/splines/q_shared.cpp | 10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)

diff --git a/libs/splines/q_shared.cpp b/libs/splines/q_shared.cpp
index 033a6ee3..fc21c27d 100644
--- a/libs/splines/q_shared.cpp
+++ b/libs/splines/q_shared.cpp
@@ -30,14 +30,10 @@
    ============================================================================
  */
 
-// malloc / free all in one place for debugging
-extern "C" void *Com_Allocate( int bytes );
-extern "C" void Com_Dealloc( void *ptr );
-
 void Com_InitGrowList( growList_t *list, int maxElements ) {
 	list->maxElements = maxElements;
 	list->currentElements = 0;
-	list->elements = (void **)Com_Allocate( list->maxElements * sizeof( void * ) );
+	list->elements = (void **)malloc( list->maxElements * sizeof( void * ) );
 }
 
 int Com_AddToGrowList( growList_t *list, void *data ) {
@@ -65,7 +61,7 @@ int Com_AddToGrowList( growList_t *list, void *data ) {
 
 	Com_DPrintf( "Resizing growlist to %i maxElements\n", list->maxElements );
 
-	list->elements = (void **)Com_Allocate( list->maxElements * sizeof( void * ) );
+	list->elements = (void **)malloc( list->maxElements * sizeof( void * ) );
 
 	if ( !list->elements ) {
 		Com_Error( ERR_DROP, "Growlist alloc failed" );
@@ -73,7 +69,7 @@ int Com_AddToGrowList( growList_t *list, void *data ) {
 
 	memcpy( list->elements, old, list->currentElements * sizeof( void * ) );
 
-	Com_Dealloc( old );
+	free( old );
 
 	return Com_AddToGrowList( list, data );
 }
-- 
2.39.5