aboutsummaryrefslogtreecommitdiffstats
path: root/src/screen_browser.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-11-07 15:28:56 +0100
committerMax Kellermann <max@duempel.org>2008-11-07 15:28:56 +0100
commit04fa1f52ea0025ce99a2c2dac31a07025004454d (patch)
tree26a3a2ec5ec672d427da10946d53cf40b47b06b5 /src/screen_browser.c
parent07ee8fd6a42aaf4b9f97972700db9da0aee895ce (diff)
downloadmpd-04fa1f52ea0025ce99a2c2dac31a07025004454d.tar.gz
mpd-04fa1f52ea0025ce99a2c2dac31a07025004454d.tar.xz
mpd-04fa1f52ea0025ce99a2c2dac31a07025004454d.zip
screen_browser: free g_path_get_dirname() return value
The function browser_change_directory() did not free the return value of g_path_get_dirname().
Diffstat (limited to 'src/screen_browser.c')
-rw-r--r--src/screen_browser.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/screen_browser.c b/src/screen_browser.c
index 26dca5285..a09e2554c 100644
--- a/src/screen_browser.c
+++ b/src/screen_browser.c
@@ -189,6 +189,7 @@ browser_change_directory(struct screen_browser *browser, mpdclient_t *c,
if( strcmp(parent, ".") == 0 )
parent[0] = '\0';
path = g_strdup(parent);
+ g_free(parent);
} else {
/* entry==NULL, then new_path ("" is root) */
path = g_strdup(new_path);