X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f368b5b9ab2bb43ffc705f60bfbbf4b89730aeea..bfaee57e812ccfb264170dd9a03f0bb186c1773b:/src/gtk/cursor.cpp diff --git a/src/gtk/cursor.cpp b/src/gtk/cursor.cpp index 6d66823e40..9f7329bfee 100644 --- a/src/gtk/cursor.cpp +++ b/src/gtk/cursor.cpp @@ -40,7 +40,7 @@ wxCursorRefData::wxCursorRefData() wxCursorRefData::~wxCursorRefData() { - if (m_cursor) gdk_cursor_destroy( m_cursor ); + if (m_cursor) gdk_cursor_unref( m_cursor ); } //----------------------------------------------------------------------------- @@ -144,8 +144,8 @@ wxCursor::wxCursor(const char bits[], int width, int height, data, mask, fg->GetColor(), bg->GetColor(), hotSpotX, hotSpotY ); - gdk_drawable_unref( data ); - gdk_drawable_unref( mask ); + g_object_unref (G_OBJECT (data)); + g_object_unref (G_OBJECT (mask)); } #if wxUSE_IMAGE @@ -296,8 +296,8 @@ wxCursor::wxCursor( const wxImage & image ) hotSpotX, hotSpotY ); - gdk_drawable_unref( data ); - gdk_drawable_unref( mask ); + g_object_unref (G_OBJECT (data)); + g_object_unref (G_OBJECT (mask)); delete [] bits; delete [] maskBits; }