Logo Search packages:      
Sourcecode: rapple version File versions  Download package

void rpl_wa_destroy ( rpl_web_asset wa  ) 

Frees resources being held by rpl_web_asset structure pointed to by wa.

Parameters:
wa 

Definition at line 96 of file webasset.c.

References _rpl_web_asset::contrib, _rpl_web_asset::filename, _rpl_web_asset::key, _rpl_web_asset::mime_type, _rpl_web_asset::rel_dir, rpl_me_free(), _rpl_web_asset::tidy_stat_desc, and _rpl_web_asset::tmpl_stat_desc.

{
    assert (wa != NULL);

    if (wa->key != RPL_STR_NUL)
        rpl_me_free(wa->key);
    if (wa->contrib != RPL_STR_NUL)
        rpl_me_free(wa->contrib);
    if (wa->filename != RPL_STR_NUL)
        rpl_me_free(wa->filename);
    if (wa->rel_dir != RPL_STR_NUL)
        rpl_me_free(wa->rel_dir);
    if (wa->mime_type != RPL_STR_NUL)
        rpl_me_free(wa->mime_type);
    if (wa->tidy_stat_desc != RPL_STR_NUL)
        rpl_me_free(wa->tidy_stat_desc);
    if (wa->tmpl_stat_desc != RPL_STR_NUL)
        rpl_me_free(wa->tmpl_stat_desc);
}


Generated by  Doxygen 1.6.0   Back to index