[GB.DBUS]
* BUG: Calling a method or a property that returns a string does not corrupt memory anymore. git-svn-id: svn://localhost/gambas/trunk@8098 867c0c6c-44f3-4631-809d-bfa615b0a4ec
This commit is contained in:
parent
7132d88001
commit
c096cae757
1 changed files with 4 additions and 1 deletions
|
@ -671,6 +671,9 @@ __ERROR:
|
|||
|
||||
static void return_value_cb(GB_TYPE type, void *value, void *param)
|
||||
{
|
||||
if (type == GB_T_STRING)
|
||||
type = GB_T_CSTRING;
|
||||
|
||||
GB.ReturnPtr(type, value);
|
||||
}
|
||||
|
||||
|
@ -1185,7 +1188,7 @@ char *DBUS_introspect(DBusConnection *connection, const char *application, const
|
|||
dbus_message_set_auto_start(message, TRUE);
|
||||
|
||||
dbus_error_init(&error);
|
||||
reply = dbus_connection_send_with_reply_and_block (connection, message, -1, &error);
|
||||
reply = dbus_connection_send_with_reply_and_block(connection, message, -1, &error);
|
||||
check_message(connection);
|
||||
|
||||
if (dbus_error_is_set(&error))
|
||||
|
|
Loading…
Reference in a new issue