summaryrefslogtreecommitdiffstats
path: root/libvo/video_out.c
diff options
context:
space:
mode:
Diffstat (limited to 'libvo/video_out.c')
-rw-r--r--libvo/video_out.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libvo/video_out.c b/libvo/video_out.c
index a17fc9aa28..0466ec5fad 100644
--- a/libvo/video_out.c
+++ b/libvo/video_out.c
@@ -176,11 +176,11 @@ static int vo_preinit(struct vo *vo, char *arg)
vo->priv = talloc_zero_size(vo, vo->driver->privsize);
if (vo->driver->options) {
struct m_config *cfg = m_config_simple(vo->driver->options, vo->priv);
+ talloc_steal(vo->priv, cfg);
char n[50];
int l = snprintf(n, sizeof(n), "vo/%s", vo->driver->info->short_name);
assert(l < sizeof(n));
int r = m_config_parse_suboptions(cfg, n, arg);
- talloc_free(cfg);
if (r < 0)
return r;
}