diff options
author | Neil Hodgson <nyamatongwe@gmail.com> | 2024-05-24 08:24:28 +1000 |
---|---|---|
committer | Neil Hodgson <nyamatongwe@gmail.com> | 2024-05-24 08:24:28 +1000 |
commit | 197ff990fbf4ae6c4ba3f5635f18d44dab83de00 (patch) | |
tree | 68267e998d688ffd9f6a3f1b01fe6cb17089ba01 | |
parent | d379e86e4a50ad19f243e4713c6c400279e5fd49 (diff) | |
download | scintilla-mirror-197ff990fbf4ae6c4ba3f5635f18d44dab83de00.tar.gz |
Bug [#2439]. Prevent warnings in log from unreferencing NULL cursor.
-rwxr-xr-x | gtk/PlatGTK.cxx | 3 |
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 |