summaryrefslogtreecommitdiffstats
path: root/src/source.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/source.c')
-rw-r--r--src/source.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/source.c b/src/source.c
index 2d5e9bbd..a7fc9a64 100644
--- a/src/source.c
+++ b/src/source.c
@@ -1,3 +1,4 @@
+#include <stdio.h>
#include <assert.h>
#include <stdlib.h>
#include <string.h>
@@ -24,6 +25,8 @@ struct source* source_new(struct core *core, const char *name, const struct samp
s->link_change_callback = NULL;
s->userdata = NULL;
+ fprintf(stderr, "source: created %u \"%s\"\n", s->index, s->name);
+
return s;
}
@@ -40,6 +43,8 @@ void source_free(struct source *s) {
idxset_remove_by_data(s->core->sources, s, NULL);
+ fprintf(stderr, "source: freed %u \"%s\"\n", s->index, s->name);
+
free(s->name);
free(s);
}