Skip to content

Commit fc4d2a1

Browse files
committed
fix error handling
1 parent 6fa3b3d commit fc4d2a1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/nanovg_gl.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1589,8 +1589,7 @@ NVGcontext* nvgCreateGLES3(int flags)
15891589
return ctx;
15901590

15911591
error:
1592-
// 'gl' is freed by nvgDeleteInternal.
1593-
if (ctx != NULL) nvgDeleteInternal(ctx);
1592+
if (gl != NULL) free(gl);
15941593
return NULL;
15951594
}
15961595

0 commit comments

Comments
 (0)