# HG changeset patch # User Thinker K.F. Li # Date 1221325480 -28800 # Node ID cf8ccf06e397eb1a43488c61d5449809d3140256 # Parent abb5511c23f7916b6aec40109676098bc012b831 Create a new coord_t as root_coord in _new() diff -r abb5511c23f7 -r cf8ccf06e397 tools/mb_c_source.m4 --- a/tools/mb_c_source.m4 Sun Sep 14 01:03:23 2008 +0800 +++ b/tools/mb_c_source.m4 Sun Sep 14 01:04:40 2008 +0800 @@ -275,7 +275,7 @@ obj = ($1_t *)malloc(sizeof($1_t)); if(obj == NULL) return NULL; ]SETUP_VARS - obj->root_coord = rdman->root_coord; + obj->root_coord = rdman_coord_new(rdman, rdman->root_coord); $2 [ return obj; }