[英]memory leak in uimapkit polyline
MKMapRect routeRect = MKMapRectMake(southWestPoint.x, southWestPoint.y, northEastPoint.x - southWestPoint.x, northEastPoint.y - southWestPoint.y);
// clear the memory allocated earlier for the points
free(pointArr);
The left operand of '-' is a garbage value
嗯,我不明白。 为什么会这样呢?
这是严重错误吗?
如何解决?
谢谢。
变量northEastPoint
显然尚未初始化为任何东西。 这意味着您的计算几乎肯定不会返回您希望的任何值。 您可以通过将所有变量初始化为有意义的状态来修复它。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.