Searched refs:layer_data (Results 1 – 1 of 1) sorted by relevance
111 struct LayerData *const layer_data = in ld_create() local112 (struct LayerData *)malloc(sizeof(*layer_data)); in ld_create()113 if (layer_data == NULL) { in ld_create()116 layer_data->buf = malloc(size); in ld_create()117 if (layer_data->buf == NULL) { in ld_create()118 free(layer_data); in ld_create()121 memcpy(layer_data->buf, buf, size); in ld_create()122 layer_data->size = size; in ld_create()123 return layer_data; in ld_create()127 static void ld_free(struct LayerData *layer_data) { in ld_free() argument[all …]