<p>Thinking about it again, I think the cast should be at the free call, so that the rest of the code still works with const gcar, making it harder to accidentally change the buffers.</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/1126#issuecomment-231462524">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe/ABDrJ5BuJskCU8tG9o8VKVa_nqow9PjZks5qTrEVgaJpZM4JHPP7">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJ62PwPXR9pdfeFMXX3AAvp4ZLiO8ks5qTrEVgaJpZM4JHPP7.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/1126#issuecomment-231462524"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>