g_value_set_string duplicates the string itself, so don't do it ourselves only to leak memory.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38090 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -144,7 +144,7 @@ static void gtk_tree_entry_string_transform_func(const GValue *src_value,
|
||||
/* TODO: Use strdup here or just pass it? */
|
||||
GtkTreeEntry* entry = GTK_TREE_ENTRY(src_value->data[0].v_pointer);
|
||||
|
||||
g_value_set_string(dest_value, g_strdup(entry->label));
|
||||
g_value_set_string(dest_value, entry->label);
|
||||
}
|
||||
|
||||
static void gtk_tree_entry_dispose(GObject* obj)
|
||||
|
Reference in New Issue
Block a user