summaryrefslogtreecommitdiff
path: root/plugins/ffap
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-04-02 18:45:49 +0200
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-04-02 18:45:49 +0200
commit91e6c9743f449c64351fff801e2abd528ebdcd4b (patch)
tree3c430727d2b6ae8bee9bf6cff70da306da7deb3c /plugins/ffap
parentab9f5abcf64ed36193f270d621c06c4b8fd5e82d (diff)
fixed ton of memleaks and memory-related crashes
Diffstat (limited to 'plugins/ffap')
-rw-r--r--plugins/ffap/ffap.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/plugins/ffap/ffap.c b/plugins/ffap/ffap.c
index f1ffdca6..4f496ec5 100644
--- a/plugins/ffap/ffap.c
+++ b/plugins/ffap/ffap.c
@@ -37,10 +37,10 @@
#include <assert.h>
#include "../../deadbeef.h"
-#define ENABLE_DEBUG 1
+#define ENABLE_DEBUG 0
-#define trace(...) { fprintf(stderr, __VA_ARGS__); }
-//#define trace(fmt,...)
+//#define trace(...) { fprintf(stderr, __VA_ARGS__); }
+#define trace(fmt,...)
#define likely(x) __builtin_expect((x),1)
#define unlikely(x) __builtin_expect((x),0)
@@ -1750,6 +1750,7 @@ ffap_insert (DB_playItem_t *after, const char *fname) {
deadbeef->pl_add_meta (it, "title", NULL);
after = deadbeef->pl_insert_item (after, it);
+ deadbeef->pl_item_unref (it);
return after;
}