diff options
author | William Wilgus <wilgus.william@gmail.com> | 2024-07-21 01:45:25 -0400 |
---|---|---|
committer | William Wilgus <wilgus.william@gmail.com> | 2024-07-21 01:45:25 -0400 |
commit | 188f025f519bc99e51a20ea842df9898a461ca6d (patch) | |
tree | 93d3799b4e64326faf7c3b38b9b72a38f43e375f /apps/tree.c | |
parent | 2b7b4c24d50ccdaf0efcf2aafd6150c954a82c4c (diff) | |
download | rockbox-188f025f519bc99e51a20ea842df9898a461ca6d.tar.gz rockbox-188f025f519bc99e51a20ea842df9898a461ca6d.zip |
[Bug Fix] Data Abort on Usb Unplug, database browser ran on USB dc
current_lists holds a pointer to whatver the current list is only problem
is when in one of the function type menus like the plugin viewer, playlist viewer, shortcut menu
probably a few others on usb unplug current_lists holds stale data and updates the list however
the data has already been freed when the function returned
the issue with db browser was a return of true from dirbrowse() which was the value 1 which is the
enum for GO_TO_DBBROWSER
Change-Id: I7349dfab2752e11f8e746925501740e959851cd5
Diffstat (limited to 'apps/tree.c')
-rw-r--r-- | apps/tree.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/tree.c b/apps/tree.c index d9d23d277a..938492b168 100644 --- a/apps/tree.c +++ b/apps/tree.c | |||
@@ -1005,7 +1005,7 @@ static int dirbrowse(void) | |||
1005 | } | 1005 | } |
1006 | } | 1006 | } |
1007 | } | 1007 | } |
1008 | return true; | 1008 | return GO_TO_ROOT; |
1009 | } | 1009 | } |
1010 | 1010 | ||
1011 | int create_playlist(void) | 1011 | int create_playlist(void) |