summaryrefslogtreecommitdiff
path: root/apps/onplay.c
diff options
context:
space:
mode:
authorHardeep Sidhu <dyp@pobox.com>2004-07-01 06:35:39 +0000
committerHardeep Sidhu <dyp@pobox.com>2004-07-01 06:35:39 +0000
commit954c4f23652634b7877315ced3661fc1191fd355 (patch)
treec6cbbd6f3194444b34a28178bbeb5379a26c0c3f /apps/onplay.c
parenta8dab4c08af0e1d251ff633a2859c8b9b24efc7c (diff)
Fixed menu leak
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4818 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/onplay.c')
-rw-r--r--apps/onplay.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/apps/onplay.c b/apps/onplay.c
index c54d9bce6f..1d129970e0 100644
--- a/apps/onplay.c
+++ b/apps/onplay.c
@@ -59,11 +59,9 @@ static bool list_viewers(void)
{
m = menu_init( menu, i, NULL, NULL, NULL, NULL );
result = menu_show(m);
+ menu_exit(m);
if (result >= 0)
- {
- menu_exit(m);
filetype_load_plugin(menu[result].desc,selected_file);
- }
}
else
{