Corrected error attempting to free the backing store memory twice

during a window close event (Cairo graphics interface only).
This commit is contained in:
Tim Edwards 2017-09-16 15:40:18 -04:00
parent 3108e5f18c
commit 0fd9f890c5
1 changed files with 2 additions and 4 deletions

View File

@ -1144,11 +1144,9 @@ MagWindow *w;
entry = HashLookOnly(&grTCairoWindowTable, (char *)xw);
HashSetValue(entry, NULL);
grtcairoFreeBackingStore(w);
tcairodata = (TCairoData *)w->w_grdata2;
if (tcairodata->backing_surface != NULL)
cairo_surface_destroy(tcairodata->backing_surface);
if (tcairodata->backing_context != NULL)
cairo_destroy(tcairodata->backing_context);
if (tcairodata->surface != NULL)
cairo_surface_destroy(tcairodata->surface);
if (tcairodata->context != NULL)