Code Review
/
src
/
app-framework-binder.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
afb-auth: Move json serialisation of afb_auth
[src/app-framework-binder.git]
/
src
/
afb-stub-ws.c
diff --git
a/src/afb-stub-ws.c
b/src/afb-stub-ws.c
index
9c90324
..
e7c8997
100644
(file)
--- a/
src/afb-stub-ws.c
+++ b/
src/afb-stub-ws.c
@@
-35,7
+35,7
@@
#include <json-c/json.h>
#include <systemd/sd-event.h>
#include <json-c/json.h>
#include <systemd/sd-event.h>
-#include <afb/afb-event
-itf
.h>
+#include <afb/afb-event.h>
#include "afb-common.h"
#include "afb-common.h"
@@
-394,7
+394,7
@@
static void on_event_remove(void *closure, const char *event_name, int event_id)
*prv = ev->next;
/* destroys the event */
*prv = ev->next;
/* destroys the event */
- afb_event_
drop
(ev->event);
+ afb_event_
unref
(ev->event);
free(ev);
}
free(ev);
}
@@
-585,7
+585,7
@@
static void drop_all_events(struct afb_stub_ws *stubws)
while (ev) {
nxt = ev->next;
while (ev) {
nxt = ev->next;
- afb_event_
drop
(ev->event);
+ afb_event_
unref
(ev->event);
free(ev);
ev = nxt;
}
free(ev);
ev = nxt;
}