Skip to content

Commit

Permalink
* Added dealloc to TSLibraryImport (possible leak of movieFileErr and…
Browse files Browse the repository at this point in the history
… export ivars)

* Added MIT License to source files.
* Added LICENSE.md
  • Loading branch information
agillesp@gmail.com committed Jul 12, 2010
1 parent 07f6413 commit a3e5243
Show file tree
Hide file tree
Showing 8 changed files with 150 additions and 29 deletions.
24 changes: 20 additions & 4 deletions Classes/TSLibraryImport.h
@@ -1,9 +1,25 @@
// //
// TSLibraryImport.h //The MIT License
// iPodLibraryAccess
// //
// Created by Art Gillespie on 7/9/10. //Copyright (c) 2010 tapsquare, llc., (http://www.tapsquare.com, art@tapsquare.com)
// Copyright 2010 tapsquare, llc. All rights reserved. //
//Permission is hereby granted, free of charge, to any person obtaining a copy
//of this software and associated documentation files (the "Software"), to deal
//in the Software without restriction, including without limitation the rights
//to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
//copies of the Software, and to permit persons to whom the Software is
//furnished to do so, subject to the following conditions:
//
//The above copyright notice and this permission notice shall be included in
//all copies or substantial portions of the Software.
//
//THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
//IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
//FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
//AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
//LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
//OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
//THE SOFTWARE.
// //


#import <AVFoundation/AVFoundation.h> #import <AVFoundation/AVFoundation.h>
Expand Down
30 changes: 26 additions & 4 deletions Classes/TSLibraryImport.m
@@ -1,9 +1,25 @@
// //
// TSLibraryImport.m //The MIT License
// iPodLibraryAccess
// //
// Created by Art Gillespie on 7/9/10. //Copyright (c) 2010 tapsquare, llc., (http://www.tapsquare.com, art@tapsquare.com)
// Copyright 2010 tapsquare, llc. All rights reserved. //
//Permission is hereby granted, free of charge, to any person obtaining a copy
//of this software and associated documentation files (the "Software"), to deal
//in the Software without restriction, including without limitation the rights
//to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
//copies of the Software, and to permit persons to whom the Software is
//furnished to do so, subject to the following conditions:
//
//The above copyright notice and this permission notice shall be included in
//all copies or substantial portions of the Software.
//
//THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
//IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
//FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
//AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
//LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
//OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
//THE SOFTWARE.
// //


#import "TSLibraryImport.h" #import "TSLibraryImport.h"
Expand Down Expand Up @@ -173,4 +189,10 @@ - (AVAssetExportSessionStatus)status {
- (float)progress { - (float)progress {
return export.progress; return export.progress;
} }

- (void)dealloc {
[export release];
[movieFileErr release];
[super dealloc];
}
@end @end
25 changes: 21 additions & 4 deletions Classes/iPodLibraryAccessAppDelegate.h
@@ -1,10 +1,27 @@
// //
// iPodLibraryAccessAppDelegate.h //The MIT License
// iPodLibraryAccess
// //
// Created by Art Gillespie on 6/11/10. //Copyright (c) 2010 tapsquare, llc., (http://www.tapsquare.com, art@tapsquare.com)
// Copyright Glaresoft 2010. All rights reserved.
// //
//Permission is hereby granted, free of charge, to any person obtaining a copy
//of this software and associated documentation files (the "Software"), to deal
//in the Software without restriction, including without limitation the rights
//to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
//copies of the Software, and to permit persons to whom the Software is
//furnished to do so, subject to the following conditions:
//
//The above copyright notice and this permission notice shall be included in
//all copies or substantial portions of the Software.
//
//THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
//IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
//FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
//AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
//LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
//OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
//THE SOFTWARE.
//



#import <UIKit/UIKit.h> #import <UIKit/UIKit.h>


Expand Down
24 changes: 20 additions & 4 deletions Classes/iPodLibraryAccessAppDelegate.m
@@ -1,9 +1,25 @@
// //
// iPodLibraryAccessAppDelegate.m //The MIT License
// iPodLibraryAccess
// //
// Created by Art Gillespie on 6/11/10. //Copyright (c) 2010 tapsquare, llc., (http://www.tapsquare.com, art@tapsquare.com)
// Copyright Glaresoft 2010. All rights reserved. //
//Permission is hereby granted, free of charge, to any person obtaining a copy
//of this software and associated documentation files (the "Software"), to deal
//in the Software without restriction, including without limitation the rights
//to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
//copies of the Software, and to permit persons to whom the Software is
//furnished to do so, subject to the following conditions:
//
//The above copyright notice and this permission notice shall be included in
//all copies or substantial portions of the Software.
//
//THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
//IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
//FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
//AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
//LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
//OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
//THE SOFTWARE.
// //


#import "iPodLibraryAccessAppDelegate.h" #import "iPodLibraryAccessAppDelegate.h"
Expand Down
24 changes: 20 additions & 4 deletions Classes/iPodLibraryAccessViewController.h
@@ -1,9 +1,25 @@
// //
// iPodLibraryAccessViewController.h //The MIT License
// iPodLibraryAccess
// //
// Created by Art Gillespie on 6/11/10. //Copyright (c) 2010 tapsquare, llc., (http://www.tapsquare.com, art@tapsquare.com)
// Copyright Glaresoft 2010. All rights reserved. //
//Permission is hereby granted, free of charge, to any person obtaining a copy
//of this software and associated documentation files (the "Software"), to deal
//in the Software without restriction, including without limitation the rights
//to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
//copies of the Software, and to permit persons to whom the Software is
//furnished to do so, subject to the following conditions:
//
//The above copyright notice and this permission notice shall be included in
//all copies or substantial portions of the Software.
//
//THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
//IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
//FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
//AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
//LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
//OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
//THE SOFTWARE.
// //


#import <UIKit/UIKit.h> #import <UIKit/UIKit.h>
Expand Down
24 changes: 20 additions & 4 deletions Classes/iPodLibraryAccessViewController.m
@@ -1,9 +1,25 @@
// //
// iPodLibraryAccessViewController.m //The MIT License
// iPodLibraryAccess
// //
// Created by Art Gillespie on 6/11/10. //Copyright (c) 2010 tapsquare, llc., (http://www.tapsquare.com, art@tapsquare.com)
// Copyright Glaresoft 2010. All rights reserved. //
//Permission is hereby granted, free of charge, to any person obtaining a copy
//of this software and associated documentation files (the "Software"), to deal
//in the Software without restriction, including without limitation the rights
//to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
//copies of the Software, and to permit persons to whom the Software is
//furnished to do so, subject to the following conditions:
//
//The above copyright notice and this permission notice shall be included in
//all copies or substantial portions of the Software.
//
//THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
//IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
//FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
//AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
//LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
//OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
//THE SOFTWARE.
// //


#import "iPodLibraryAccessViewController.h" #import "iPodLibraryAccessViewController.h"
Expand Down
4 changes: 3 additions & 1 deletion iPodLibraryAccess.xcodeproj/project.pbxproj
Expand Up @@ -70,6 +70,7 @@
C8AA498B11E7DA5C00CD2D6D /* TSLibraryImport.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TSLibraryImport.h; sourceTree = "<group>"; }; C8AA498B11E7DA5C00CD2D6D /* TSLibraryImport.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TSLibraryImport.h; sourceTree = "<group>"; };
C8AA498C11E7DA5C00CD2D6D /* TSLibraryImport.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TSLibraryImport.m; sourceTree = "<group>"; }; C8AA498C11E7DA5C00CD2D6D /* TSLibraryImport.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TSLibraryImport.m; sourceTree = "<group>"; };
C8E0E92711CC18ED00B51EB5 /* CoreMedia.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreMedia.framework; path = System/Library/Frameworks/CoreMedia.framework; sourceTree = SDKROOT; }; C8E0E92711CC18ED00B51EB5 /* CoreMedia.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreMedia.framework; path = System/Library/Frameworks/CoreMedia.framework; sourceTree = SDKROOT; };
C8E956B611EBAD5500398384 /* LICENSE.md */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = LICENSE.md; sourceTree = "<group>"; };
/* End PBXFileReference section */ /* End PBXFileReference section */


/* Begin PBXFrameworksBuildPhase section */ /* Begin PBXFrameworksBuildPhase section */
Expand Down Expand Up @@ -126,13 +127,14 @@
29B97314FDCFA39411CA2CEA /* CustomTemplate */ = { 29B97314FDCFA39411CA2CEA /* CustomTemplate */ = {
isa = PBXGroup; isa = PBXGroup;
children = ( children = (
C8AA49AF11E7DED900CD2D6D /* Tests */, C8E956B611EBAD5500398384 /* LICENSE.md */,
C8AA47BF11E6708800CD2D6D /* README.md */, C8AA47BF11E6708800CD2D6D /* README.md */,
080E96DDFE201D6D7F000001 /* Classes */, 080E96DDFE201D6D7F000001 /* Classes */,
29B97315FDCFA39411CA2CEA /* Other Sources */, 29B97315FDCFA39411CA2CEA /* Other Sources */,
29B97317FDCFA39411CA2CEA /* Resources */, 29B97317FDCFA39411CA2CEA /* Resources */,
29B97323FDCFA39411CA2CEA /* Frameworks */, 29B97323FDCFA39411CA2CEA /* Frameworks */,
19C28FACFE9D520D11CA2CBB /* Products */, 19C28FACFE9D520D11CA2CBB /* Products */,
C8AA49AF11E7DED900CD2D6D /* Tests */,
); );
name = CustomTemplate; name = CustomTemplate;
sourceTree = "<group>"; sourceTree = "<group>";
Expand Down
24 changes: 20 additions & 4 deletions main.m
@@ -1,9 +1,25 @@
// //
// main.m //The MIT License
// iPodLibraryAccess
// //
// Created by Art Gillespie on 6/11/10. //Copyright (c) 2010 tapsquare, llc., (http://www.tapsquare.com, art@tapsquare.com)
// Copyright Glaresoft 2010. All rights reserved. //
//Permission is hereby granted, free of charge, to any person obtaining a copy
//of this software and associated documentation files (the "Software"), to deal
//in the Software without restriction, including without limitation the rights
//to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
//copies of the Software, and to permit persons to whom the Software is
//furnished to do so, subject to the following conditions:
//
//The above copyright notice and this permission notice shall be included in
//all copies or substantial portions of the Software.
//
//THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
//IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
//FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
//AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
//LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
//OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
//THE SOFTWARE.
// //


#import <UIKit/UIKit.h> #import <UIKit/UIKit.h>
Expand Down

0 comments on commit a3e5243

Please sign in to comment.