seed r749 - trunk/libseed
- From: racarr svn gnome org
- To: svn-commits-list gnome org
- Subject: seed r749 - trunk/libseed
- Date: Wed, 14 Jan 2009 21:43:19 +0000 (UTC)
Author: racarr
Date: Wed Jan 14 21:43:19 2009
New Revision: 749
URL: http://svn.gnome.org/viewvc/seed?rev=749&view=rev
Log:
Fix GI_TRANSFER_CONTAINER for GI_TYPE_TAG_ARRAY
Modified:
trunk/libseed/seed-types.c
Modified: trunk/libseed/seed-types.c
==============================================================================
--- trunk/libseed/seed-types.c (original)
+++ trunk/libseed/seed-types.c Wed Jan 14 21:43:19 2009
@@ -119,7 +119,12 @@
param_type = g_type_info_get_param_type(type_info, 0);
if (g_type_info_get_tag(param_type) == GI_TYPE_TAG_UTF8)
- g_strfreev(arg->v_pointer);
+ {
+ if (transfer == GI_TRANSFER_EVERYTHING)
+ g_strfreev(arg->v_pointer);
+ else if (transfer == GI_TRANSFER_CONTAINER)
+ g_free(arg->v_pointer);
+ }
else if (g_type_info_get_tag(param_type) == GI_TYPE_TAG_GTYPE)
g_free(arg->v_pointer);
else
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]