pgAdmin III commit: Fix two deletes of the same object in a query tool

From: Guillaume Lelarge <guillaume(at)lelarge(dot)info>
To: pgadmin-hackers(at)postgresql(dot)org
Subject: pgAdmin III commit: Fix two deletes of the same object in a query tool
Date: 2010-10-14 10:01:15
Message-ID: 201010141001.o9EA1Fmd013933@gothos.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

Fix two deletes of the same object in a query tool

When a user executes a query and wants to save the results, he clicks on the
disk-with-a-green-arrow icon. If he clicks on the Cancel button, pgAdmin
crashes. The issue was that we deleted two times the qi->toFileExportForm
object. Once in the frmQuery code and once in the qi destroy method. Fixed by
deleting the one in the frmQuery code.

Report from Jean-Michel Souchard.

Fixes #255.

Branch
------
master

Details
-------
http://git.postgresql.org/gitweb?p=pgadmin3.git;a=commitdiff;h=d76fd311dd20788a5940b4d24b174d9fa38eda4e

Modified Files
--------------
pgadmin/frm/frmQuery.cpp | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)

Browse pgadmin-hackers by date

  From Date Subject
Next Message pgAdmin Trac 2010-10-14 10:02:39 Re: [pgAdmin III] #255: Crash of the query tool if one cancels the export dialog
Previous Message pgAdmin Trac 2010-10-14 09:57:50 [pgAdmin III] #255: Crash of the query tool if one cancels the export dialog