aboutsummaryrefslogtreecommitdiffhomepage
path: root/libmenu
diff options
context:
space:
mode:
authorGravatar ulion <ulion@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-12-17 01:20:19 +0000
committerGravatar ulion <ulion@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-12-17 01:20:19 +0000
commit1dc9f8ea08568d145c7f9ace52a13a9e115ca8bc (patch)
tree97b88f7d5bf7cd03bc4617c9ff59a3fc39c02a0b /libmenu
parent9bfbfd8c4d039c34b84fb1f09ce54c0e8e5f0e11 (diff)
Fix memory leak.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25429 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmenu')
-rw-r--r--libmenu/menu_cmdlist.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libmenu/menu_cmdlist.c b/libmenu/menu_cmdlist.c
index 8abb15269e..9574936c44 100644
--- a/libmenu/menu_cmdlist.c
+++ b/libmenu/menu_cmdlist.c
@@ -90,6 +90,10 @@ static void free_entry(list_entry_t* entry) {
free(entry->ok);
if(entry->cancel)
free(entry->cancel);
+ if(entry->left)
+ free(entry->left);
+ if(entry->right)
+ free(entry->right);
free(entry->p.txt);
free(entry);
}