home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / patches / old / 5.6.006 < prev    next >
Encoding:
Internet Message Format  |  2000-01-22  |  1.5 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 5.6.006
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. ------------
  6.  
  7. Patch 5.6.006
  8. Problem:    GTK GUI: Bold font cannot always be used.  Memory is freed too
  9.         early in gui_mch_init_font().
  10. Solution:   Move call to g_free() to after where sdup is used. (Artem Hodyush)
  11. Files:        src/gui_gtk_x11.c
  12.  
  13.  
  14. *** ../vim-5.6.5/src/gui_gtk_x11.c    Sun Jan 16 14:08:56 2000
  15. --- src/gui_gtk_x11.c    Fri Jan 21 20:36:18 2000
  16. ***************
  17. *** 2107,2114 ****
  18.           ++i;
  19.           }
  20.   
  21. -     g_free(sdup);
  22.       if (i == 14)
  23.       {
  24.           char *bold_name = NULL;
  25. --- 2107,2112 ----
  26. ***************
  27. *** 2125,2130 ****
  28. --- 2123,2129 ----
  29.           vim_free(bold_name);
  30.           vim_free(ital_name);
  31.           vim_free(italbold_name);
  32. +         g_free(sdup);
  33.           return FAIL;
  34.           }
  35.   
  36. ***************
  37. *** 2182,2187 ****
  38. --- 2181,2188 ----
  39.           vim_free(ital_name);
  40.           vim_free(italbold_name);
  41.       }
  42. +     g_free(sdup);
  43.       }
  44.   
  45.       /* Synchronize the fonts used in user input dialogs, since otherwise
  46. *** ../vim-5.6.5/src/version.c    Fri Jan 21 20:42:31 2000
  47. --- src/version.c    Fri Jan 21 20:41:21 2000
  48. ***************
  49. *** 420,421 ****
  50. --- 420,423 ----
  51.   {   /* Add new patch number below this line */
  52. + /**/
  53. +     6,
  54.   /**/
  55.  
  56. -- 
  57. GALAHAD: No. Look, I can tackle this lot single-handed!
  58. GIRLS:   Yes, yes, let him Tackle us single-handed!
  59.                  "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
  60.  
  61. --/-/---- Bram Moolenaar ---- Bram@moolenaar.net ---- Bram@vim.org ---\-\--
  62.   \ \    www.vim.org/iccf      www.moolenaar.net       www.vim.org    / /
  63.