[seed] change callback release_in_arg to release_arg otherwise segfaults occur
- From: Alan Knowles <alank src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [seed] change callback release_in_arg to release_arg otherwise segfaults occur
- Date: Thu, 11 Mar 2010 15:04:16 +0000 (UTC)
commit 848d7b2d7b56477a3ef56e2c8a731b2f210e1f22
Author: Alan Knowles <alan akkbhome com>
Date: Thu Mar 11 23:03:47 2010 +0800
change callback release_in_arg to release_arg otherwise segfaults occur
ClipboardTextReceivedFunc - char* text got freed before it was used.
The logic in release_in_arg is inconsitant with what I think is being attempted here.
libseed/seed-closure.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libseed/seed-closure.c b/libseed/seed-closure.c
index 766de5a..36328bb 100644
--- a/libseed/seed-closure.c
+++ b/libseed/seed-closure.c
@@ -170,7 +170,7 @@ seed_handle_closure (ffi_cif * cif, void *result, void **args, void *userdata)
arg->v_pointer = 0;
}
jsargs[i] = seed_gi_argument_make_js (ctx, arg, arg_type, 0);
- seed_gi_release_in_arg (g_arg_info_get_ownership_transfer (arg_info),
+ seed_gi_release_arg (g_arg_info_get_ownership_transfer (arg_info),
arg_type, arg);
g_base_info_unref ((GIBaseInfo *) arg_info);
g_base_info_unref ((GIBaseInfo *) arg_type);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]