adium 5422:3cd596256677: Fix some leaks and the headers in the n...

commits at adium.im commits at adium.im
Tue Apr 16 18:33:36 UTC 2013


details:	http://hg.adium.im/adium/rev/3cd596256677
revision:	5422:3cd596256677
branch:		JSXtras
author:		Thijs Alkemade <me at thijsalkema.de>
date:		Tue Apr 16 20:33:19 2013 +0200

Fix some leaks and the headers in the new files.

diffs (79 lines):

diff -r b53d5958872b -r 3cd596256677 Plugins/WebKit Message View/AIJSHTMLContentFilter.h
--- a/Plugins/WebKit Message View/AIJSHTMLContentFilter.h	Tue Apr 16 20:24:51 2013 +0200
+++ b/Plugins/WebKit Message View/AIJSHTMLContentFilter.h	Tue Apr 16 20:33:19 2013 +0200
@@ -1,10 +1,18 @@
-//
-//  AIJSHTMLContentFilter.h
-//  Adium
-//
-//  Created by Thijs Alkemade on 24-03-13.
-//  Copyright (c) 2013 The Adium Team. All rights reserved.
-//
+/*
+ * Adium is the legal property of its developers, whose names are listed in the copyright file included
+ * with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or modify it under the terms of the GNU
+ * General Public License as published by the Free Software Foundation; either version 2 of the License,
+ * or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even
+ * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General
+ * Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along with this program; if not,
+ * write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
+ */
 
 #import <Foundation/Foundation.h>
 #import "AdiumContentFiltering.h"
diff -r b53d5958872b -r 3cd596256677 Plugins/WebKit Message View/AIJSHTMLContentFilter.m
--- a/Plugins/WebKit Message View/AIJSHTMLContentFilter.m	Tue Apr 16 20:24:51 2013 +0200
+++ b/Plugins/WebKit Message View/AIJSHTMLContentFilter.m	Tue Apr 16 20:33:19 2013 +0200
@@ -1,10 +1,18 @@
-//
-//  AIJSHTMLContentFilter.m
-//  Adium
-//
-//  Created by Thijs Alkemade on 24-03-13.
-//  Copyright (c) 2013 The Adium Team. All rights reserved.
-//
+/*
+ * Adium is the legal property of its developers, whose names are listed in the copyright file included
+ * with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or modify it under the terms of the GNU
+ * General Public License as published by the Free Software Foundation; either version 2 of the License,
+ * or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even
+ * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General
+ * Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along with this program; if not,
+ * write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
+ */
 
 #import "AIJSHTMLContentFilter.h"
 #import <Adium/AIContentControllerProtocol.h>
@@ -34,7 +42,7 @@
     
     JSStringRelease(resultJSString);
     
-    return [[(NSString *)resultString retain] autorelease];
+    return [(NSString *)resultString autorelease];
 }
 
 - (CGFloat)filterPriority
diff -r b53d5958872b -r 3cd596256677 Plugins/WebKit Message View/AIWebKitMessageViewController.m
--- a/Plugins/WebKit Message View/AIWebKitMessageViewController.m	Tue Apr 16 20:24:51 2013 +0200
+++ b/Plugins/WebKit Message View/AIWebKitMessageViewController.m	Tue Apr 16 20:33:19 2013 +0200
@@ -1703,6 +1703,8 @@
         [adium.contentController registerHTMLContentFilter:contentFilter
                                                  direction:AIFilterOutgoing];
     }
+	
+	[contentFilter release];
 }
 
 /*




More information about the commits mailing list