Skip to content
Snippets Groups Projects
Commit 0011055d authored by deuce's avatar deuce
Browse files

Free and NULL the last rect when resizing the xim.

parent fc3f2e0d
No related branches found
No related tags found
No related merge requests found
......@@ -204,6 +204,10 @@ static void resize_xim(void)
x11.XDestroyImage(xim);
#endif
}
if (last) {
bitmap_drv_free_rect(last);
last = NULL;
}
xim=x11.XCreateImage(dpy,&visual,depth,ZPixmap,0,NULL,bitmap_width*x_cvstat.scaling,bitmap_height*x_cvstat.scaling*x_cvstat.vmultiplier,32,0);
xim->data=(char *)malloc(xim->bytes_per_line*xim->height);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment