Since the backing store is created in ui_create_window, free it in

ui_destroy_window, for symmetry. This is also necessary when
reconnecting with a different size, since the backing store size needs
to be changed.



git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1555 423420c4-83ab-492f-b58f-81f9feb106b5
This commit is contained in:
Peter Åstrand 2010-01-18 10:06:54 +00:00
parent cf7d593ff8
commit c47cb3018d

9
xwin.c
View File

@ -1962,9 +1962,6 @@ ui_deinit(void)
XFreeModifiermap(g_mod_map);
if (g_ownbackstore)
XFreePixmap(g_display, g_backstore);
XFreeGC(g_display, g_gc);
XCloseDisplay(g_display);
g_display = NULL;
@ -2160,6 +2157,12 @@ ui_destroy_window(void)
XDestroyWindow(g_display, g_wnd);
g_wnd = 0;
if (g_backstore)
{
XFreePixmap(g_display, g_backstore);
g_backstore = 0;
}
}
void