options: make option struct the talloc parent of options
commit48f0692ab973448de5faa323478d1cba3d42e2af
authorUoti Urpala <uau@mplayer2.org>
Sat, 19 May 2012 22:26:38 +0000 (20 01:26 +0300)
committerUoti Urpala <uau@mplayer2.org>
Mon, 16 Jul 2012 18:08:42 +0000 (16 21:08 +0300)
tree0d00001f5ad9f04e64613c9759c38be5c80b9f10
parentdc2a4863af9b0e587ac4ec3e2096639098e99a8f
options: make option struct the talloc parent of options

Allocate dynamically-allocated option values as talloc children of the
option struct. This will allow implementing per-object (VO etc)
options so that simply freeing the object will free associated options
too.

This doesn't change quite every allocation in m_option.c, but the
exceptions are legacy types which will not matter for new per-object
options.
m_config.c
m_option.c
m_option.h
m_struct.c