fix a bug in sample code
This commit is contained in:
parent
fa1da645c8
commit
17520df61c
|
@ -90,7 +90,7 @@ When you use dynamic memory allocation inside C APIs, you must be caseful about
|
|||
|
||||
f = create_foo();
|
||||
|
||||
data = pic_data_alloc(pic, &f, md);
|
||||
data = pic_data_alloc(pic, &foo_type, md);
|
||||
|
||||
return pic_obj_value(data);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue