X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=libchimara%2Fchimara-glk.c;h=bf0e60b7fc72cc2fd332de6be14dc406792df88d;hb=ad98bb1fda2b32c26b03e3025e429e0d437df846;hp=2c61dacce675a549305625bd279052d332746a98;hpb=3d656f9b1002c4b32b7fd27636568e4873a89020;p=rodin%2Fchimara.git diff --git a/libchimara/chimara-glk.c b/libchimara/chimara-glk.c index 2c61dac..bf0e60b 100644 --- a/libchimara/chimara-glk.c +++ b/libchimara/chimara-glk.c @@ -624,7 +624,7 @@ chimara_glk_class_init(ChimaraGlkClass *klass) * ChimaraGlk:monospace-font-description: * * Pointer to a #PangoFontDescription describing the default monospace font, - * to be used in text grid windows and #style_Preformatted, for example. + * to be used in text grid windows and %style_Preformatted, for example. * * Default value: font description created from the string * Monospace @@ -995,9 +995,9 @@ chimara_glk_run(ChimaraGlk *glk, gchar *plugin, int argc, char *argv[], GError * startup_succeeded = glkunix_startup_code(&data); priv->in_startup = FALSE; - gchar **ptr = data.argv; - while(*ptr++) - g_free(*ptr); + int i=0; + while(i < data.argc) + g_free(data.argv[i++]); g_free(data.argv); if(!startup_succeeded)