<p>In <a href="https://github.com/geany/geany/pull/629#discussion_r38930243">plugins/demoproxy.c</a>:</p>
<pre style='color:#555'>> +    g_return_if_fail(data->menu_items);
> +
> +  g_slist_free_full(data->menu_items, (GDestroyNotify) gtk_widget_destroy);
> +  g_ptr_array_unref(data->strings);
> +}
> +
> +
> +static gint demoproxy_probe(GeanyPlugin *proxy, const gchar *filename, gpointer pdata)
> +{
> +  /* We know the extension is right (Geany checks that). For demo purposes we perform an
> +   * additional check. This is not necessary when the extension is unique enough. */
> +  gboolean match;
> +  gchar linebuf[128];
> +  FILE *f = fopen(filename, "r");
> +  fgets(linebuf, sizeof(linebuf), f);
> +  match = utils_str_equal(linebuf, "#!!proxy_MAGIC!!\n");
</pre>
<p>the magic doesn't match the one in the docs or the one actually used in the sample <em>.px</em></p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/geany/geany/pull/629/files#r38930243">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJ-xro6rycq5UaDvFld6ZX1y0tIupks5ovuVGgaJpZM4Fy7fG.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/629/files#r38930243"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>