Commit 475cf91f authored by Gaëtan Renaudeau's avatar Gaëtan Renaudeau

Fixes #17

parent 3117f291
......@@ -216,8 +216,9 @@ RCT_NOT_IMPLEMENTED(-init)
images[src] = image;
}
if (image == nil) {
__weak GLCanvas *weakSelf = self;
image = [[GLImage alloc] initWithBridge:_bridge withOnLoad:^{
[self onImageLoad:src];
if (weakSelf) [weakSelf onImageLoad:src];
}];
image.src = src;
images[src] = image;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment