thank you.I use json_object_set either for a new object or change the value of an old one.I hope its ok.
--
--
Jansson users mailing list
jansso...@googlegroups.com
http://groups.google.com/group/jansson-users
---
You received this message because you are subscribed to the Google Groups "Jansson users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jansson-user...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
thanks for the advice. but i dont understand. how can i avoid the memory leak?
Sent from my android device.
-----Original Message-----
From: rogerz <rogerz...@gmail.com>
To: "jansso...@googlegroups.com" <jansso...@googlegroups.com>
Sent: Sat, 27 Apr 2013 0:45
Subject: Re: [jansson-users] change a json field
On Friday, April 26, 2013, Vas K wrote:
thank you.I use json_object_set either for a new object or change the value of an old one.I hope its ok.I think you should be careful about memory leak when using json_object_set().json_object_set(obj, "ndNumber", json_integer(1234));The extra ref to anonymous json_integer(1234) will keep it in memory when you do json_decref(obj).