[chronojump/FS-TFT-Menu] Fixed a crash on dispose cairobars encoder when drawingarea has not been shown yet
- From: Xavier Padullés <xpadulles src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump/FS-TFT-Menu] Fixed a crash on dispose cairobars encoder when drawingarea has not been shown yet
- Date: Wed, 20 Apr 2022 11:59:22 +0000 (UTC)
commit b7c54c4b2708b45d41470c8aaa7b1ce2dbbbc83a
Author: Xavier de Blas <xaviblas gmail com>
Date: Tue Apr 5 12:58:39 2022 +0200
Fixed a crash on dispose cairobars encoder when drawingarea has not been shown yet
src/gui/cairo/generic.cs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/gui/cairo/generic.cs b/src/gui/cairo/generic.cs
index b83b185b8..1dc06db0d 100644
--- a/src/gui/cairo/generic.cs
+++ b/src/gui/cairo/generic.cs
@@ -58,7 +58,7 @@ public abstract class CairoGeneric
*/
protected void endGraphDisposing(Cairo.Context g, ImageSurface surface, Gdk.Window window)
{
- if(surface != null)
+ if(surface != null && window != null)
{
using (Context gArea = Gdk.CairoHelper.Create (window))
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]