Ver Fonte

Fixed a memleak during shutdown, caused by missing mail db shutdown code.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11440 54d463be-8e91-2dee-dedb-b68131a5f0ec
ultramage há 17 anos atrás
pai
commit
3e5c810544
1 ficheiros alterados com 7 adições e 0 exclusões
  1. 7 0
      src/map/map.c

+ 7 - 0
src/map/map.c

@@ -2998,6 +2998,13 @@ int map_sql_close(void)
 		logmysql_handle = NULL;
 	}
 
+	if(mail_server_enable)
+	{ 
+		ShowStatus("Close Mail DB Connection....\n");
+		Sql_Free(mail_handle);
+		mail_handle = NULL;
+	}
+
 	return 0;
 }