Browse Source

Issue #419: document that NULL may be passed to json_object_put().

tags/json-c-0.14-20200419
Eric Haszlakiewicz 7 years ago
parent
commit
c1c71097a1
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      json_object.h

+ 1
- 0
json_object.h View File

@@ -193,6 +193,7 @@ JSON_EXPORT struct json_object* json_object_get(struct json_object *obj);
* Decrement the reference count of json_object and free if it reaches zero.
* You must have ownership of obj prior to doing this or you will cause an
* imbalance in the reference count.
* An obj of NULL may be passed; in that case this call is a no-op.
*
* @param obj the json_object instance
* @returns 1 if the object was freed.


Loading…
Cancel
Save