From e6dabdd700a9c4b76e66bb6e7cc8beca3bd1aeeb Mon Sep 17 00:00:00 2001 From: "gtm.daemon" Date: Mon, 24 Aug 2009 15:45:19 +0000 Subject: [Author: dmaclach] Standardize how we call free. No need to check for NULL. R=thomasvl DELTA=24 (0 added, 13 deleted, 11 changed) --- DebugUtils/GTMMethodCheck.m | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'DebugUtils/GTMMethodCheck.m') 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]; } -- cgit v1.2.3