]> www.fi.muni.cz Git - evince.git/blobdiff - dvi/mdvi-lib/sp-epsf.c
Enable print to a PDF. Fixes bug #332121.
[evince.git] / dvi / mdvi-lib / sp-epsf.c
index de08482a7bf3baa102b8211723f18bb724e4fae3..ca13c8645d80e077f89cd63b42df2d5c68d8bded 100644 (file)
@@ -235,14 +235,14 @@ void      epsf_special(DviContext *dvi, char *prefix, char *arg)
 {
        char    *file;
        char    *special;
-       EpsfBox box;
+       EpsfBox box = {0, 0, 0, 0};
        int     x, y;
        int     w, h;
        double  xf, vf;
        
        file = parse_epsf_special(&box, &special, prefix, arg);
        if(file != NULL)
-               xfree(special);
+               mdvi_free(special);
        /* 
         * draw the bounding box. Notice that it is in PostScript units,
         * so we have to convert it into pixels