summaryrefslogtreecommitdiffstats
path: root/libmenu
diff options
context:
space:
mode:
authorUoti Urpala <uau@mplayer2.org>2011-07-03 20:04:21 +0300
committerUoti Urpala <uau@mplayer2.org>2011-07-03 20:04:21 +0300
commitc5364305bec6dff4566b988157b93d3d171465e3 (patch)
tree13e28a781e2e1f4699b4caffff0d61e2ef079187 /libmenu
parent774bb252aa0bda6a6ef927cd9287b0a6c01da0e6 (diff)
downloadmpv-c5364305bec6dff4566b988157b93d3d171465e3.tar.bz2
mpv-c5364305bec6dff4566b988157b93d3d171465e3.tar.xz
commands: change property mechanism to use talloc strings
Diffstat (limited to 'libmenu')
-rw-r--r--libmenu/menu_chapsel.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libmenu/menu_chapsel.c b/libmenu/menu_chapsel.c
index fb159eaeee..d1489549c2 100644
--- a/libmenu/menu_chapsel.c
+++ b/libmenu/menu_chapsel.c
@@ -27,6 +27,7 @@
#include "config.h"
+#include "talloc.h"
#include "m_struct.h"
#include "m_option.h"
#include "input/input.h"
@@ -111,7 +112,9 @@ static int fill_menu (menu_t* menu)
if ((e = calloc (1, sizeof (list_entry_t))) != NULL) {
e->cid = cid + 1;
e->p.next = NULL;
- e->p.txt = demuxer_chapter_display_name(demuxer, cid);
+ char *str = demuxer_chapter_display_name(demuxer, cid);
+ e->p.txt = strdup(str);
+ talloc_free(str);
start_time = demuxer_chapter_time(demuxer, cid, NULL);
if (start_time >= 0) {
char timestr[13];