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); }
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); }
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); }