*/}}
소스 검색

prevent node copy fromcrashing

YimingWu 1 년 전
부모
커밋
e1fd568c52
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      la_interface.h

+ 1 - 1
la_interface.h

@@ -1457,7 +1457,7 @@ void latouched_NodeInSocket(void* unused, int hint);
 #define LA_IDN_OLD_DUPL(socket) \
     old->socket->Duplicated=new->socket;
 #define LA_IDN_NEW_LINK(socket) \
-    { new->socket->Source=old->socket->Source?old->socket->Source->Duplicated:0; new->socket->ColorId=old->socket->ColorId; }
+    { memAssignRef(new->socket,&new->socket->Source,old->socket->Source?old->socket->Source->Duplicated:0); new->socket->ColorId=old->socket->ColorId; }
 
 
 extern laBaseNodeType LA_IDN_KEYBOARD;