diff options
author | Jeinzi <Jeinzi@gmx.de> | 2019-01-28 01:18:15 +0100 |
---|---|---|
committer | Jeinzi <Jeinzi@gmx.de> | 2019-01-28 01:18:15 +0100 |
commit | 7ad157e230607974f8eb922406254862a0476e71 (patch) | |
tree | 51ef9d9a6e6b304dbc2c229650fe1c018e1a95c2 /src/image.c | |
parent | 5005b4cf990e0ef1ce1c25f44056303e5d07b1a5 (diff) | |
download | imv-7ad157e230607974f8eb922406254862a0476e71.tar.gz |
Changed &pointer[0] to pointer, fixed partial bind issue for long commands.
Diffstat (limited to 'src/image.c')
-rw-r--r-- | src/image.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/image.c b/src/image.c index 617d45c..8934cbc 100644 --- a/src/image.c +++ b/src/image.c @@ -29,6 +29,9 @@ struct imv_image *imv_image_create(SDL_Renderer *r) void imv_image_free(struct imv_image *image) { + if(!image) { + return; + } if(image->num_chunks > 0) { for(int i = 0; i < image->num_chunks; ++i) { SDL_DestroyTexture(image->chunks[i]); |