aboutsummaryrefslogtreecommitdiff
path: root/Foundation/GTMStackTrace.m
diff options
context:
space:
mode:
authorGravatar thomasvl@gmail.com <thomasvl@gmail.com@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3>2008-08-21 03:02:17 +0000
committerGravatar thomasvl@gmail.com <thomasvl@gmail.com@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3>2008-08-21 03:02:17 +0000
commit5a1a87dbfba0ad19a9bb9a8a3ea36496cc359da8 (patch)
tree4715a1d73c11681ec3c0be6be4cad4f58cb2f8ae /Foundation/GTMStackTrace.m
parent7063d76a007fbf636250d7199d6f24ec487163b1 (diff)
- Added GTMGetURLHandler class that gives you a very easy way of supporting
Get URL events just by adding a key to your plists, and adding a single method to your class. See GTMGetURLHandler.m for more details. - Added XcodeProject, AppleScript, and InterfaceBuilder Spotlight Plugins. Allows you to index .xcodeproj, .scpt, .scptd, .xib, .nib, and .aib files. See Readmes beside individual projects in SpotlightPlugins.
Diffstat (limited to 'Foundation/GTMStackTrace.m')
-rw-r--r--Foundation/GTMStackTrace.m4
1 files changed, 3 insertions, 1 deletions
diff --git a/Foundation/GTMStackTrace.m b/Foundation/GTMStackTrace.m
index 5dc1c0b..a7198dc 100644
--- a/Foundation/GTMStackTrace.m
+++ b/Foundation/GTMStackTrace.m
@@ -45,7 +45,7 @@ struct GTMClassDescription {
static struct GTMClassDescription *GTMClassDescriptions(int *total_count) {
int class_count = objc_getClassList(nil, 0);
struct GTMClassDescription *class_descs
- = calloc(class_count, sizeof(struct GTMClassDescription));
+ = calloc(class_count, sizeof(struct GTMClassDescription));
if (class_descs) {
Class *classes = calloc(class_count, sizeof(Class));
if (classes) {
@@ -61,8 +61,10 @@ static struct GTMClassDescription *GTMClassDescriptions(int *total_count) {
}
free(classes);
} else {
+ // COV_NF_START - Don't know how to force this in a unittest
free(class_descs);
class_count = 0;
+ // COV_NF_END
}
}
if (total_count) {