mirror of
https://github.com/mkxp-z/mkxp-z.git
synced 2025-09-10 12:02:53 +02:00
Fix free
being called on null pointer in Graphics.snap_to_bitmap
in standalone builds
This commit is contained in:
parent
2f589e1cf4
commit
c18e7e28a3
1 changed files with 1 additions and 1 deletions
|
@ -270,7 +270,7 @@ RB_METHOD_GUARD(graphicsSnapToBitmap)
|
|||
|
||||
Bitmap *result = 0;
|
||||
|
||||
BINDING_GUARD_LF(delete result, result = shState->graphics().snapToBitmap(e));
|
||||
BINDING_GUARD_L(result = shState->graphics().snapToBitmap(e));
|
||||
|
||||
VALUE obj = wrapObject(result, BitmapType);
|
||||
bitmapInitProps(result, obj);
|
||||
|
|
Loading…
Add table
Reference in a new issue