aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/textadept.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/textadept.c b/src/textadept.c
index a3c85189..071c96f0 100644
--- a/src/textadept.c
+++ b/src/textadept.c
@@ -75,13 +75,13 @@ int main(int argc, char **argv) {
char path[260];
CFURLRef bundle_url = CFBundleCopyBundleURL(bundle);
CFStringRef bundle_path =
- CFURLCopyFileSystemPath(bundle_url, kCFURLPOSIXPathStyle);
- CFStringGetCString(bundle_path, path, 260, kCFStringEncodingASCII);
+ CFURLCopyFileSystemPath(bundle_url, kCFURLPOSIXPathStyle);
+ CFStringGetCString(bundle_path, path, 260, kCFStringEncodingASCII);
char *resources_path = g_strconcat(path, "/Contents/Resources/", NULL);
- textadept_home = static_cast<char*>(resources_path);
- g_free(path);
- CFRelease(bundle_url);
- CFRelease(bundle_path);
+ textadept_home = static_cast<char*>(resources_path);
+ g_free(path);
+ CFRelease(bundle_url);
+ CFRelease(bundle_path);
} else textadept_home = "";
#endif
gtk_init(&argc, &argv);