Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • gobject-introspection gobject-introspection
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 226
    • Issues 226
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 25
    • Merge requests 25
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GNOME
  • gobject-introspectiongobject-introspection
  • Issues
  • #204

Closed
Open
Created Apr 12, 2018 by Morten Welinder@welinderDeveloper

"const" ignored for return value causing incorrect "transfer full" default

I am pretty sure this was reported years ago, but it's not in the current bug list.

char const *value_peek_string1 (GnmValue const *v);
Gives... <return-value transfer-ownership="full">

const char *value_peek_string2 (GnmValue const *v);
Gives... <return-value transfer-ownership="none">

As far as the C language is concerned, these two declarations are identical (other than the name, of course).

But the introspection scanner sees them as different and, worse, applies the wrong default on value_peek_string1. The result is an extra free and it's downhill from there.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking