Loading ...
Sorry, an error occurred while loading the content.

bugfix?: workshop.c oversight

Expand Messages
  • David Harrison
    I found a small ;-) problem in workshop.c ... *************** *** 630,641 **** XmStringExtent(fontList, str, &w, &h); XmStringFree(str);
    Message 1 of 1 , Feb 28, 2001
    • 0 Attachment
      I found a small ;-) problem in workshop.c


      *** ../vim60w/src/workshop.c Thu Feb 22 06:21:12 2001
      --- src/workshop.c Wed Feb 28 09:23:22 2001
      ***************
      *** 630,641 ****
      XmStringExtent(fontList, str, &w, &h);
      XmStringFree(str);
      XmFontListFree(fontList);
      - #if 0
      /* documentation says XmFontListEntryFree() doesn't free the
      * XFontStruct, but gvim crashes if the following call is made.
      */
      ! XmFontListEntryFree(fle);
      ! #endif
      }
      if (h)
      {
      --- 630,644 ----
      XmStringExtent(fontList, str, &w, &h);
      XmStringFree(str);
      XmFontListFree(fontList);
      /* documentation says XmFontListEntryFree() doesn't free the
      * XFontStruct, but gvim crashes if the following call is made.
      */
      ! XmFontListEntryFree(&fle);
      ! /* OOPS! You are supposed to pass in the ADDRESS of fle!
      ! *
      ! * Note: These are Motif 1.2 and later functions/contructs.
      ! * (David Harrison)
      ! */
      }
      if (h)
      {
    Your message has been successfully submitted and would be delivered to recipients shortly.