Project

General

Profile

array.c.patch

liming, 2010-01-06 08:18

View differences:

patch/src/array.c 2010-01-01 21:51:39.000000000 +0800
143 143
		a->data[a->used] = NULL;
144 144
	}
145 145

  
146
	if (ds && ds->type != t) {
147
		ds->free(ds);
148
		ds = NULL;
149
	}
150

  
146 151
	return ds;
147 152
}