The documentation should precise that : - poppler_document_new_from_data doesn't make a copy of the data - the data must not be freed !
As far as I can see, poppler_document_new_from_data calls g_object_new internally, so you should call g_object_unref(). I don't think that this should be explicitly documented.
I know this bug report is very old, but the original complaint seems valid to me and is still not resolved. I think in comment 1, Yury misunderstood the report. The issue is the missing documentation and introspection annotations for the data argument of poppler_document_new_from_data, not for the returned object.
-- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/poppler/poppler/issues/550.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.