On Jul 14, 2006, at 11:05 AM, Christian Schmitz wrote:
Boolean HasMask(REALpicture thePict) // REALobject instance
{
return (REALGetPictureMask(thePict, false) != NULL);
}
Guess why this leaks memory.
OK, thanks! It has been over 2 years since I last worked in C/C++...
and I guess I just got used to REALbasic memory management. How is
this instead:
Boolean HasMask(REALpicture thePict) // REALobject instance
{
REALpicture theMask = REALGetPictureMask(thePict, false);
if(theMask != NULL)
{
REALUnlockObject((REALobject)theMask);
return true;
} else {
return false;
}
}
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
From Fri 14 Jul 2006 19:48:27 +0200
Return-Path: <realbasic-plugins-bounces at lists dot realsoftware dot com>
X-Original-To: listarchive at realsoftware dot com
Delivered-To: listarchive at realsoftware dot com
Received: by xmail.realsoftware.com (Postfix, from userid 1037)
id 34C3A82725D; Fri, 14 Jul 2006 10:48:46 -0700 (PDT)
X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on
www.realsoftware.com
X-Spam-Level:
X-Spam-Status: No, score=-2.6 required=4.5 tests=AWL,BAYES_00 autolearn=ham
version=3.1.1
Received: from lists.realsoftware.com (lists.realsoftware.com [209.198.132.125])
by xmail.realsoftware.com (Postfix) with ESMTP id B440A827253;
Fri, 14 Jul 2006 10:48:42 -0700 (PDT)
Received: from lists.realsoftware.com (localhost [127.0.0.1])
by lists.realsoftware.com (Postfix) with ESMTP
id 0A0D21381980; Fri, 14 Jul 2006 12:48:34 -0500 (CDT)
X-Original-To: realbasic-plugins at lists dot realsoftware dot com
Delivered-To: realbasic-plugins at lists dot realsoftware dot com
Received: from smtprelay06.ispgateway.de (smtprelay06.ispgateway.de
[80.67.18.44])
by lists.realsoftware.com (Postfix) with ESMTP id 4877D1381973
for <realbasic-plugins at lists dot realsoftware dot com>;
Fri, 14 Jul 2006 12:48:29 -0500 (CDT)
Received: (qmail 11175 invoked from network); 14 Jul 2006 17:48:28 -0000
Received: from unknown (HELO [192.168.1.80]) (363246 at [84 dot 175 dot 109 dot
233])
(envelope-sender <support at monkeybreadsoftware dot de>)
by smtprelay06.ispgateway.de (qmail-ldap-1.03) with SMTP
for <realbasic-plugins at lists dot realsoftware dot com>;
14 Jul 2006 17:48:28 -0000
To: realbasic-plugins at lists dot realsoftware dot com (REALbasic Plugins)
In-Reply-To: <A2776510-29CF-4DDF-8ED1-3D1B01F10E9E at mobleybros dot com>
From: support at monkeybreadsoftware dot de (Christian Schmitz)
Date: Fri, 14 Jul 2006 19:48:27 +0200
Message-ID: <1hihddt dot 14z0s0uwxtr8pM%support at monkeybreadsoftware dot de>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Organization: Monkeybread Software Germany
X-Face: nrf3>{WQ6c&r+7 at e)"]0G60`-6ND^)I2mI%>)QGYa=9"=7jhd-g2|b3!>Al0+
Ccb%xGQshhi|g at QU2$
User-Agent: MacSOUP/D-2.7 (Mac OS X version 10.4.7)
Subject: Re: Templates and other questions
X-BeenThere: realbasic-plugins at lists dot realsoftware dot com
X-Mailman-Version: 2.1.2
Precedence: list
Reply-To: REALbasic Plugins <realbasic-plugins at lists dot realsoftware dot
com>
Sender: realbasic-plugins-bounces at lists dot realsoftware dot com
Errors-To: realbasic-plugins-bounces at lists dot realsoftware dot com
Phil M <phil at mobleybros dot com> wrote:
> Guess why this leaks memory.
=20
OK, thanks! It has been over 2 years since I last worked in C/C++...
and I guess I just got used to REALbasic memory management. How is =20
this instead:
looks ok.
Gru=DF
Christian
--=20
Around eleven thousand functions in one REALbasic plug-in.=20
The Monkeybread Software Realbasic Plugin v6.2.
<http://www.monkeybreadsoftware.de/realbasic/plugins.shtml>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
|