diff src/win32/win32dep.c @ 7606:08c9d0dcf906

[gaim-migrate @ 8229] " Some things allocated with g_malloc() were being free()'d instead of g_free()'d This patch fixes the ones I managed to find." --Stu Tomlinson (nosnilmot) committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Sun, 23 Nov 2003 15:32:25 +0000
parents 77727178a1df
children ec291c2cad6a
line wrap: on
line diff
--- a/src/win32/win32dep.c	Sun Nov 23 15:25:04 2003 +0000
+++ b/src/win32/win32dep.c	Sun Nov 23 15:32:25 2003 +0000
@@ -359,18 +359,18 @@
 	if( hmod == 0 ) {
 		buf = g_win32_error_message( GetLastError() );
 		gaim_debug(GAIM_DEBUG_ERROR, "wgaim", "GetModuleHandle error: %s\n", buf);
-		free(buf);
+		g_free(buf);
 		return NULL;
 	}
 	if(GetModuleFileName( hmod, (char*)&install_dir, MAXPATHLEN ) == 0) {
 		buf = g_win32_error_message( GetLastError() );
 		gaim_debug(GAIM_DEBUG_ERROR, "wgaim", "GetModuleFileName error: %s\n", buf);
-		free(buf);
+		g_free(buf);
 		return NULL;
 	}
 	buf = g_path_get_dirname( install_dir );
 	strcpy( (char*)&install_dir, buf );
-	free( buf );
+	g_free( buf );
 
 	return (char*)&install_dir;
 }