浏览代码

Removed unnecessary retain.

woollybah 5 年之前
父节点
当前提交
d61576a88a
共有 1 个文件被更改,包括 0 次插入1 次删除
  1. 0 1
      map.mod/map.c

+ 0 - 1
map.mod/map.c

@@ -156,7 +156,6 @@ void bmx_map_ptrmap_insert( void * key, BBObject *value, struct avl_root ** root
 	struct ptrmap_node * node = (struct ptrmap_node *)GC_malloc_uncollectable(sizeof(struct ptrmap_node));
 	struct ptrmap_node * node = (struct ptrmap_node *)GC_malloc_uncollectable(sizeof(struct ptrmap_node));
 	node->key = key;
 	node->key = key;
 	node->value = value;
 	node->value = value;
-	BBRETAIN(value);
 	
 	
 	struct ptrmap_node * old_node = (struct ptrmap_node *)avl_map(&node->link, compare_ptrmap_nodes, root);
 	struct ptrmap_node * old_node = (struct ptrmap_node *)avl_map(&node->link, compare_ptrmap_nodes, root);