A doube about gvariant



Hi:

         I have a doubt about the use of gvariant.

         In the source file: glib-2.34.3/gio/tests/gdbus-test-codegen.c:860, foo_igen_bar_call_test_primitive_types_sync uses a address of ret_val_bytestring, which is a local variable which type is gchar *. After function returns, ret_val_bytestring will be pointed to a memory section, and I know this section is got from a inner gvariant variable. But does someone can tell me when and how should I release this memory?

         Any suggestion is appreciate!

 

fred

 

---------------------------------------------------------------------------------------------------
Confidentiality Notice: The information contained in this e-mail and any accompanying attachment(s)
is intended only for the use of the intended recipient and may be confidential and/or privileged of
Neusoft Corporation, its subsidiaries and/or its affiliates. If any reader of this communication is
not the intended recipient, unauthorized use, forwarding, printing,  storing, disclosure or copying
is strictly prohibited, and may be unlawful.If you have received this communication in error,please
immediately notify the sender by return e-mail, and delete the original message and all copies from
your system. Thank you.
---------------------------------------------------------------------------------------------------



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]