Return-Path: X-Original-To: apmail-incubator-ooo-issues-archive@minotaur.apache.org Delivered-To: apmail-incubator-ooo-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3C61697F6 for ; Fri, 15 Jun 2012 09:40:18 +0000 (UTC) Received: (qmail 93386 invoked by uid 500); 15 Jun 2012 09:40:18 -0000 Delivered-To: apmail-incubator-ooo-issues-archive@incubator.apache.org Received: (qmail 93282 invoked by uid 500); 15 Jun 2012 09:40:17 -0000 Mailing-List: contact ooo-issues-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ooo-issues@incubator.apache.org Delivered-To: mailing list ooo-issues@incubator.apache.org Received: (qmail 93272 invoked by uid 99); 15 Jun 2012 09:40:16 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Jun 2012 09:40:16 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.123] (HELO sif.zones.apache.org) (140.211.11.123) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Jun 2012 09:40:14 +0000 Received: by sif.zones.apache.org (Postfix, from userid 80) id 7253D6F58; Fri, 15 Jun 2012 09:39:54 +0000 (UTC) From: bugzilla@apache.org To: ooo-issues@incubator.apache.org Subject: [Bug 113608] animations: All animation nodes are leaked Date: Fri, 15 Jun 2012 09:39:52 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: drawing X-Bugzilla-Component: code X-Bugzilla-Keywords: X-Bugzilla-Severity: trivial X-Bugzilla-Who: af@a-w-f.de X-Bugzilla-Status: CONFIRMED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: clippka@apache.org X-Bugzilla-Target-Milestone: AOO 3.x X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://issues.apache.org/ooo/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org https://issues.apache.org/ooo/show_bug.cgi?id=113608 --- Comment #11 from Andre --- Well, as long as SdrObject and SvxShape are two separate classes, everything remains a workaround. And as long an SdrObject holds its SvxShape as weak pointer, every access to that weak pointer has to be guarded. The only strange thing is that it appears to be (but I did not check that) that the reference count of the weak pointer goes to zero without the SvxShape being destroyed. It might be a good idea to remove the mpSvxShape member altogether. Regarding you proposed change: if( !HasSdrObjectOwnership() ){ mpObj->setUnoShape( NULL, SdrObject::GrantXShapeAccess() ... I am not sure if it is valid to modify mpObj when it is not owned by the SvxShape ie HasSdrObjectOwnership() is false. It might be OK to make the setUnoShape(NULL...) call when mpObj points back to "this". -- You are receiving this mail because: You are on the CC list for the bug.