diff options
author | gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3> | 2009-08-24 15:45:19 +0000 |
---|---|---|
committer | gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3> | 2009-08-24 15:45:19 +0000 |
commit | e6dabdd700a9c4b76e66bb6e7cc8beca3bd1aeeb (patch) | |
tree | 4cddedf5d8dcfafa983ca425a44602a2e17c386b /DebugUtils | |
parent | 0f017ffd481523a46e1ef8c14db1e6a1e290ed3b (diff) |
[Author: dmaclach]
Standardize how we call free. No need to check for NULL.
R=thomasvl
DELTA=24 (0 added, 13 deleted, 11 changed)
Diffstat (limited to 'DebugUtils')
-rw-r--r-- | DebugUtils/GTMMethodCheck.m | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/DebugUtils/GTMMethodCheck.m b/DebugUtils/GTMMethodCheck.m index a8c4ae3..0d55e11 100644 --- a/DebugUtils/GTMMethodCheck.m +++ b/DebugUtils/GTMMethodCheck.m @@ -151,13 +151,9 @@ void GTMMethodCheckMethodChecker(void) { } } } - if (methods) { - free(methods); - } - } - if (classes) { - free(classes); + free(methods); } + free(classes); [pool release]; } |