X-Git-Url: http://git.draconx.ca/gitweb/gob-dx.git/blobdiff_plain/714b58ab4606ed4d40cec3702cb378938f8c883f..7231d76fbf4ae0b501af648e1216b88714aa7353:/examples/my-person.gob diff --git a/examples/my-person.gob b/examples/my-person.gob index cad0672..d895a62 100644 --- a/examples/my-person.gob +++ b/examples/my-person.gob @@ -16,14 +16,14 @@ class My:Person from Gtk:Object { public long dod; /* date of death as a time_t */ private int rounds_in_shotgun; /* number of rounds in our shotgun */ - + argument POINTER (type char *) name get { - /* note that strdup handles NULL correctly */ + /* note that g_strdup handles NULL correctly */ ARG = g_strdup(self->name); } set { - /* note that strdup handles NULL correctly */ + /* note that g_free and g_strdup handles NULL correctly */ g_free(self->name); self->name = g_strdup(ARG); };