Browse Source

Increase ref counter before returning cursors

ElBuda 7 years ago
parent
commit
09fe5974f6
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/Avalonia.Native.OSX/cursor.mm

+ 1 - 0
src/Avalonia.Native.OSX/cursor.mm

@@ -46,6 +46,7 @@ public:
     virtual HRESULT GetCursor (AvnStandardCursorType cursorType, IAvnCursor** retOut)
     {
         *retOut = s_cursorMap[cursorType];
+        (*retOut)->AddRef();
         return S_OK;
     }
 };