Parcourir la source

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 il y a 17 ans
Parent
commit
3e5c810544
1 fichiers modifiés avec 7 ajouts et 0 suppressions
  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;
 }