Fixed crash in FreeBSD.
[rodin/chimara.git] / libchimara / chimara-glk.c
index 2c61dacce675a549305625bd279052d332746a98..bf0e60b7fc72cc2fd332de6be14dc406792df88d 100644 (file)
@@ -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 
         * <quote>Monospace</quote>
@@ -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)