mirror of
https://github.com/EQEmu/Server.git
synced 2026-11-28 09:22:17 +00:00
Few minor issues highlighted by cppcheck/valgrind.
This commit is contained in:
1 parent
af1f87a00f
commit
c8ca362eba
5 files changed
+7
-7
No files matched your search
+1
-1
@@ -11629,5 +11629,5 @@ void command_augmentitem(Client *c, const Seperator *sep)
|
||||
in_augment->augment_slot = -1;
|
||||
if(c->GetTradeskillObject() != NULL)
|
||||
Object::HandleAugmentation(c, in_augment, c->GetTradeskillObject());
|
||||
safe_delete(in_augment);
|
||||
safe_delete_array(in_augment);
|
||||
}
|
||||
+2
-2
@@ -5450,7 +5450,7 @@ void NPC::LoadMercTypes(){
|
||||
mysql_free_result(DatasetResult);
|
||||
}
|
||||
|
||||
safe_delete(Query);
|
||||
safe_delete_array(Query);
|
||||
Query = 0;
|
||||
|
||||
if(!errorMessage.empty()) {
|
||||
@@ -5486,7 +5486,7 @@ void NPC::LoadMercs(){
|
||||
mysql_free_result(DatasetResult);
|
||||
}
|
||||
|
||||
safe_delete(Query);
|
||||
safe_delete_array(Query);
|
||||
Query = 0;
|
||||
|
||||
if(!errorMessage.empty()) {
|
||||
|
||||
+1
-1
@@ -1094,7 +1094,7 @@ int Parser::LoadScript(int npcid, const char * zone, Mob* activater)
|
||||
buffer.replace(buffer.length()-1,buffer.length(),"");
|
||||
int heh = ParseCommands(buffer,line_num,0,0,0,0,filename);
|
||||
if (!heh){
|
||||
safe_delete_array(NewEventList);
|
||||
safe_delete(NewEventList);
|
||||
return 0;
|
||||
}
|
||||
event1->command = buffer;
|
||||
|
||||
Reference in new issue
Block a user