summaryrefslogtreecommitdiff
path: root/playlist.c
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-04-03 13:14:41 +0200
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-04-03 13:14:41 +0200
commit3e27fc0b8f694cc3ce121cdf152b6b1ff8943f04 (patch)
tree40e2f04406a723aeee61a4929fb490bf7e0a9bb9 /playlist.c
parent16b16e1e6cd83fd4c518408b610f3ef176f0f443 (diff)
fixed several memleaks
Diffstat (limited to 'playlist.c')
-rw-r--r--playlist.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/playlist.c b/playlist.c
index 2e855e2f..a431dccd 100644
--- a/playlist.c
+++ b/playlist.c
@@ -51,8 +51,8 @@
#define PLAYLIST_MAJOR_VER 1
#define PLAYLIST_MINOR_VER 1
-//#define trace(...) { fprintf(stderr, __VA_ARGS__); }
-#define trace(fmt,...)
+#define trace(...) { fprintf(stderr, __VA_ARGS__); }
+//#define trace(fmt,...)
#define SKIP_BLANK_CUE_TRACKS 1
@@ -1356,7 +1356,7 @@ void
pl_item_ref (playItem_t *it) {
LOCK;
it->_refc++;
-// trace ("+it %p: refc=%d: %s\n", it, it->_refc, it->fname);
+ //trace ("\033[0;34m+it %p: refc=%d: %s\033[37;0m\n", it, it->_refc, it->fname);
UNLOCK;
}
@@ -1383,7 +1383,7 @@ void
pl_item_unref (playItem_t *it) {
LOCK;
it->_refc--;
-// trace ("-it %p: refc=%d: %s\n", it, it->_refc, it->fname);
+ //trace ("\033[0;31m-it %p: refc=%d: %s\033[37;0m\n", it, it->_refc, it->fname);
if (it->_refc < 0) {
trace ("\033[0;31mplaylist: bad refcount on item %p\033[37;0m\n", it);
}