1. Jens Alfke
  2. MYUtilities

Commits

Jens Alfke  committed 02ad6b2

Fixed leaks in MailUtils.

  • Participants
  • Parent commits ca570bc
  • Branches default

Comments (0)

Files changed (1)

File MailUtils.m

View file
                 [[[mail classForScriptingClass:@"to recipient"] alloc] initWithProperties:
                                                                  $dict({@"address", recipient})];
             [emailMessage.toRecipients addObject: theRecipient];
+            [theRecipient release];
         }
         
         /* add an attachment, if one was specified */
             
             /* add it to the list of attachments */
             [[emailMessage.content attachments] addObject: theAttachment];
+            [theAttachment release];
         }
         
         /* add the object to the mail app  */