aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorNeil Hodgson <nyamatongwe@gmail.com>2024-05-24 08:24:28 +1000
committerNeil Hodgson <nyamatongwe@gmail.com>2024-05-24 08:24:28 +1000
commit197ff990fbf4ae6c4ba3f5635f18d44dab83de00 (patch)
tree68267e998d688ffd9f6a3f1b01fe6cb17089ba01
parentd379e86e4a50ad19f243e4713c6c400279e5fd49 (diff)
downloadscintilla-mirror-197ff990fbf4ae6c4ba3f5635f18d44dab83de00.tar.gz
Bug [#2439]. Prevent warnings in log from unreferencing NULL cursor.
-rwxr-xr-xgtk/PlatGTK.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk/PlatGTK.cxx b/gtk/PlatGTK.cxx
index e7d6abd3d..563fa9c81 100755
--- a/gtk/PlatGTK.cxx
+++ b/gtk/PlatGTK.cxx
@@ -1353,7 +1353,8 @@ void Window::SetCursor(Cursor curs) {
if (WindowFromWidget(PWidget(wid)))
gdk_window_set_cursor(WindowFromWidget(PWidget(wid)), gdkCurs);
- UnRefCursor(gdkCurs);
+ if (gdkCurs)
+ UnRefCursor(gdkCurs);
}
/* Returns rectangle of monitor pt is on, both rect and pt are in Window's