<p></p>
<blockquote>
<p>The result of g_get_os_info must be freed even it is not explicitly stated in the docs</p>
</blockquote>
<p>I assumed based on the lack of <code>[transfer full]</code> or whatever annotation that it wasn't required, since basically every binding will have a leak otherwise, but you are correct and it's just a bug that the annotation is missing and all automatically generated bindings will leak.</p>
<blockquote>
<p>Output on ArchLinux:<br>
Output on Windows 7:</p>
</blockquote>
<p>Thanks for testing! Based on the output on Ubuntu, Arch and Windows so far, I suggest we go with only printing the "pretty name", like just this one printf:</p>
<div class="highlight highlight-source-c"><pre><span class="pl-en">geany_debug</span>(<span class="pl-s"><span class="pl-pds">"</span>OS: <span class="pl-c1">%s</span><span class="pl-pds">"</span></span>, get_os_info_field(G_OS_INFO_KEY_PRETTY_NAME));</pre></div>
<p>Sound good?</p>
<p><a class="user-mention" data-hovercard-type="user" data-hovercard-url="/users/techee/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/techee">@techee</a> would it be possible that you could test this on Macos? I'm not sure how involved that would be, if it's too much trouble, no worries.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany/pull/2498#issuecomment-629428177">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJ6MKJOPHJVZADNKDGTRRWHDJANCNFSM4M4VSF6Q">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AAIOWJ33ILCIOM5BCLCQ3ULRRWHDJA5CNFSM4M4VSF62YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEWCE7UI.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany/pull/2498#issuecomment-629428177",
"url": "https://github.com/geany/geany/pull/2498#issuecomment-629428177",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>