don't free or modify static strings, dup them when needed and clear the
authorMichael Natterer <mitch@imendio.com>
Tue, 24 Apr 2007 13:36:58 +0000 (13:36 +0000)
committerMichael Natterer <mitch@src.gnome.org>
Tue, 24 Apr 2007 13:36:58 +0000 (13:36 +0000)
commit325bd373d4d730d96aee740daed4bc2b70b8ea07
tree2ed138ad4cd5b0908cfd4ae89a2d69a7d553b0b3
parentfc161a705845f274c5f03aa628020865e6666c12
don't free or modify static strings, dup them when needed and clear the

2007-04-24  Michael Natterer  <mitch@imendio.com>

* gobject/gparamspecs.c (param_string_validate): don't free or
modify static strings, dup them when needed and clear the
G_VALUE_NOCOPY_CONTENTS flag. Fixes bug #432895.

* tests/gobject/paramspec-test.c: test all GParamSpecString
validations with static and allocated strings.

svn path=/trunk/; revision=5454
ChangeLog
gobject/gparamspecs.c
tests/gobject/paramspec-test.c