Itseez/opencv — pull request #2296 by apavlenko (2014-02-06 17:35:58+00:00)
Title: fixing issues from coverity scan

1167937, 1167938, 1167939, 1127248
(http://scan.coverity.com/projects/169?tab=Overview)