diff --git a/gst-sdk/tutorials/xcode iOS/Tutorial 1/GStreamerBackend.m b/gst-sdk/tutorials/xcode iOS/Tutorial 1/GStreamerBackend.m index 18a48d2e3a..e36233b5b5 100644 --- a/gst-sdk/tutorials/xcode iOS/Tutorial 1/GStreamerBackend.m +++ b/gst-sdk/tutorials/xcode iOS/Tutorial 1/GStreamerBackend.m @@ -6,10 +6,10 @@ -(NSString*) getGStreamerVersion { - char *str = gst_version_string(); - NSString *version = [NSString stringWithUTF8String:str]; - g_free(str); - return version; + char *version_utf8 = gst_version_string(); + NSString *version_string = [NSString stringWithUTF8String:version_utf8]; + g_free(version_utf8); + return version_string; } @end