mdpr->type_specific_data = malloc(sizeof(char)*type_specific_len);
if( !mdpr->type_specific_data ) {
- if( mdpr->stream_name ) free( mdpr->stream_name );
+ free( mdpr->stream_name );
free( mdpr );
return NULL;
}
{
if (!h) return;
- if (h->fileheader) free(h->fileheader);
- if (h->prop) free(h->prop);
- if (h->data) free(h->data);
- if (h->cont) {
- free(h->cont->title);
- free(h->cont->author);
- free(h->cont->copyright);
- free(h->cont->comment);
- free(h->cont);
+ free( h->fileheader );
+ free( h->prop );
+ free( h->data );
+ if( h->cont ) {
+ free( h->cont->title );
+ free( h->cont->author );
+ free( h->cont->copyright );
+ free( h->cont->comment );
+ free( h->cont );
}
if (h->streams) {
rmff_mdpr_t **s=h->streams;