aligned linux code to windows: check if preview pixmap != main pixmap before destroying. probably not needed but good practice
This commit is contained in:
parent
7e845db5df
commit
b4681b22af
|
|
@ -836,8 +836,9 @@ void preview_window(const char *what, const char *tk_win_path, const char *filen
|
||||||
xctx = save_xctx; /* restore schematic */
|
xctx = save_xctx; /* restore schematic */
|
||||||
modified = save_mod;
|
modified = save_mod;
|
||||||
set_modify(modified);
|
set_modify(modified);
|
||||||
/* free the pixmap used for preview */
|
/* free the pixmap (if a different one) used for preview */
|
||||||
#ifdef __unix__
|
#ifdef __unix__
|
||||||
|
if (save_pixmap != save_save_pixmap)
|
||||||
XFreePixmap(display,save_pixmap);
|
XFreePixmap(display,save_pixmap);
|
||||||
#else
|
#else
|
||||||
if (save_pixmap != save_save_pixmap)
|
if (save_pixmap != save_save_pixmap)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue