Examples: Fixed resource leaks warnings.