diff options
author | Alexey Yakovenko <wakeroid@gmail.com> | 2010-04-02 20:47:54 +0200 |
---|---|---|
committer | Alexey Yakovenko <wakeroid@gmail.com> | 2010-04-02 20:47:54 +0200 |
commit | 43afc3b8e3cc41a41515810bd07e56e25f4d206c (patch) | |
tree | 88954da3e561d54cdac1b2331b4c470edbb6c21c /main.c | |
parent | afc9d00750d37e8a1e5e0c35e3c11bab20b2282f (diff) |
fixed several memleaks
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -148,6 +148,9 @@ server_exec_command_line (const char *cmdline, int len, char *sendback, int sbsi else { strcpy (sendback, "nowplaying nothing"); } + if (curr) { + pl_item_unref (curr); + } } else { char out[2048]; @@ -159,6 +162,9 @@ server_exec_command_line (const char *cmdline, int len, char *sendback, int sbsi else { strcpy (out, "nothing"); } + if (curr) { + pl_item_unref (curr); + } fwrite (out, 1, strlen (out), stdout); return 1; // exit } |