<p>plugin_set_key_group() and _full() effectively take the ownership,<br>
because the section_name is stored inside Geany.</p>

<p>Plugins usually pass a static string so it's not a problem. But GI-based<br>
plugins might pass dynamic strings, so this behavior needs to be documented.</p>

<p>Fixes keybindings.conf being written with garbage (for a GI-based plugin).</p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/geany/geany/pull/1125'>https://github.com/geany/geany/pull/1125</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>api: correctly document ownership transfer</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany/pull/1125/files#diff-0">src/pluginutils.c</a>
    (4)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/geany/geany/pull/1125.patch'>https://github.com/geany/geany/pull/1125.patch</a></li>
  <li><a href='https://github.com/geany/geany/pull/1125.diff'>https://github.com/geany/geany/pull/1125.diff</a></li>
</ul>

<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/1125">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe/ABDrJ5aI1NYWlwFbNFoL47cA0CYMDmx7ks5qTRJpgaJpZM4JHKV_">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJ9UpM264YEFWWdZ4R2eZJvjC9Z6Xks5qTRJpgaJpZM4JHKV_.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/geany/geany/pull/1125"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>