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
manages reference counting for events
[src/app-framework-binder.git]
/
plugins
/
samples
/
HelloWorld.c
diff --git
a/plugins/samples/HelloWorld.c
b/plugins/samples/HelloWorld.c
index
ec060e9
..
2714ef4
100644
(file)
--- a/
plugins/samples/HelloWorld.c
+++ b/
plugins/samples/HelloWorld.c
@@
-54,7
+54,7
@@
static void pingBug (struct afb_req request)
static void pingEvent(struct afb_req request)
{
json_object *query = afb_req_json(request);
static void pingEvent(struct afb_req request)
{
json_object *query = afb_req_json(request);
- afb_evmgr_push(afb_daemon_get_evmgr(interface->daemon), "event",
json_object_get(query)
);
+ afb_evmgr_push(afb_daemon_get_evmgr(interface->daemon), "event",
query
);
ping(request, json_object_get(query), "event");
}
ping(request, json_object_get(query), "event");
}