瀏覽代碼

Revert a memleak fix in a506c7f

Akinari1087 11 年之前
父節點
當前提交
a200e3a2a8
共有 1 個文件被更改,包括 1 次插入3 次删除
  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;