作図ソフト dia の改良版
修訂 | 72a406b9926e1cd0fb7e120d27ea322a3364936f (tree) |
---|---|
時間 | 2009-09-20 01:44:59 |
作者 | Hans Breuer <hans@breu...> |
Commiter | Hans Breuer |
Bug #594877 - Memory leak when writing vdx
@@ -3439,7 +3439,7 @@ vdx_write_object(FILE *file, unsigned int depth, const void *p) | ||
3439 | 3439 | const struct vdx_pp *pp; |
3440 | 3440 | const struct vdx_tp *tp; |
3441 | 3441 | const struct vdx_text *text; |
3442 | - char *pad = (char *)malloc(2*depth+1); | |
3442 | + char *pad = (char *)g_alloca(2*depth+1); | |
3443 | 3443 | unsigned int i; |
3444 | 3444 | for (i=0; i<2*depth; i++) { pad[i] = ' '; } |
3445 | 3445 | pad[2*depth] = 0; |