From 78bc624ba91afa2416c8a5f0eb8c71ee8862219c Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Thu, 5 Jul 2012 18:52:06 +0200 Subject: [PATCH] Fixed use of removed functions. --- src/win32_monitor.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/win32_monitor.c b/src/win32_monitor.c index 452b347e..54516c23 100644 --- a/src/win32_monitor.c +++ b/src/win32_monitor.c @@ -55,7 +55,7 @@ _GLFWmonitor** _glfwCreateMonitor(_GLFWmonitor** current, { HDC dc = NULL; - *current = _glfwMalloc(sizeof(_GLFWmonitor)); + *current = malloc(sizeof(_GLFWmonitor)); memset(*current, 0, sizeof(_GLFWmonitor)); dc = CreateDC("DISPLAY", monitor->DeviceString, NULL, NULL); @@ -65,7 +65,7 @@ _GLFWmonitor** _glfwCreateMonitor(_GLFWmonitor** current, DeleteDC(dc); - (*current)->name = _glfwMalloc(strlen(monitor->DeviceName) + 1); + (*current)->name = malloc(strlen(monitor->DeviceName) + 1); memcpy((*current)->name, monitor->DeviceName, strlen(monitor->DeviceName) + 1); (*current)->name[strlen(monitor->DeviceName)] = '\0'; @@ -82,8 +82,8 @@ _GLFWmonitor* _glfwDestroyMonitor(_GLFWmonitor* monitor) result = monitor->next; - _glfwFree(monitor->name); - _glfwFree(monitor); + free(monitor->name); + free(monitor); return result; }