浏览代码

D'oh

tags/v0.9.3
Michael Brown 18 年前
父节点
当前提交
31f1bf4426
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2
    2
      src/core/interface.c

+ 2
- 2
src/core/interface.c 查看文件

38
  * interface into a null interface.
38
  * interface into a null interface.
39
  */
39
  */
40
 void plug ( struct interface *intf, struct interface *dest ) {
40
 void plug ( struct interface *intf, struct interface *dest ) {
41
-	ref_put ( intf->refcnt );
42
-	ref_get ( dest->refcnt );
41
+	ref_put ( intf->dest->refcnt );
43
 	intf->dest = dest;
42
 	intf->dest = dest;
43
+	ref_get ( intf->dest->refcnt );
44
 }
44
 }
45
 
45
 
46
 /**
46
 /**

正在加载...
取消
保存