コード例 #1
0
void
mowgli_global_storage_free(char *name)
{
	mowgli_spinlock_lock(mowgli_global_storage_lock, name, name);
	mowgli_dictionary_delete(mowgli_global_storage_dict, name);
	mowgli_spinlock_unlock(mowgli_global_storage_lock, name, name);
}
コード例 #2
0
ファイル: id3v24.c プロジェクト: gnu-andrew/audacious.old
static void remove_frame (gint id, mowgli_dictionary_t * dict)
{
    GenericFrame * frame = mowgli_dictionary_retrieve (dict, id3_frames[id]);
    if (frame == NULL)
        return;

    TAGDBG ("Deleting frame %s.\n", id3_frames[id]);
    mowgli_dictionary_delete (dict, id3_frames[id]);
    free_generic_frame (frame);
}
コード例 #3
0
ファイル: format.c プロジェクト: kaniini/conspire
void
formatter_remove(const gchar *key)
{
    Formatter *f;

    f = mowgli_dictionary_retrieve(formatters, key);
    if (f == NULL)
        return;

    mowgli_dictionary_delete(formatters, key);

    g_free(f->key);
    g_free(f->format);

    g_slice_free(Formatter, f);
}