• R/O
  • HTTP
  • SSH
  • HTTPS

提交

标签
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

作図ソフト dia の改良版


Commit MetaInfo

修订版72a406b9926e1cd0fb7e120d27ea322a3364936f (tree)
时间2009-09-20 01:44:59
作者Hans Breuer <hans@breu...>
CommiterHans Breuer

Log Message

Bug #594877 - Memory leak when writing vdx

更改概述

差异

--- a/plug-ins/vdx/vdx-xml.c
+++ b/plug-ins/vdx/vdx-xml.c
@@ -3439,7 +3439,7 @@ vdx_write_object(FILE *file, unsigned int depth, const void *p)
34393439 const struct vdx_pp *pp;
34403440 const struct vdx_tp *tp;
34413441 const struct vdx_text *text;
3442- char *pad = (char *)malloc(2*depth+1);
3442+ char *pad = (char *)g_alloca(2*depth+1);
34433443 unsigned int i;
34443444 for (i=0; i<2*depth; i++) { pad[i] = ' '; }
34453445 pad[2*depth] = 0;