Przeglądaj źródła

Revert a memleak fix in a506c7f

Akinari1087 11 lat temu
rodzic
commit
a200e3a2a8
1 zmienionych plików z 1 dodań i 3 usunięć
  1. 1 3
      src/map/pc.c

+ 1 - 3
src/map/pc.c

@@ -8528,10 +8528,8 @@ int pc_checkcombo(struct map_session_data *sd, struct item_data *data ) {
 		}
 
 		/* means we broke out of the count loop w/o finding all ids, we can move to the next combo */
-		if( j < data->combos[i]->count ) {
-			aFree(pair);
+		if( j < data->combos[i]->count )
 			continue;
-		}
 
 		/* we got here, means all items in the combo are matching */
 		idx = sd->combos.count;