pgAdmin III commit: Fix segfault when connecting to a database - Mailing list pgadmin-hackers

From Guillaume Lelarge
Subject pgAdmin III commit: Fix segfault when connecting to a database
Date
Msg-id 201105281209.p4SC9NjN018339@gothos.postgresql.org
Whole thread Raw
List pgadmin-hackers
Fix segfault when connecting to a database

The issue appears when you first connect to a database, and then disconnect
from it. If you try to connect once again to it, you get a segmentation fault
because pgAdmin will try to get the database statistics informations from a
non-existent connection.

The patch adds a check on the connection status.

Report from Steffen Kuhn.

Branch
------
master

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

Modified Files
--------------
pgadmin/schema/pgDatabase.cpp |   96 +++++++++++++++++++++--------------------
1 files changed, 49 insertions(+), 47 deletions(-)


pgadmin-hackers by date:

Previous
From: Guillaume Lelarge
Date:
Subject: Seems you forgot to add a file to your repository
Next
From: "pgAdmin Trac"
Date:
Subject: [pgAdmin III] #319: Recovering SQL Files after pgAdmin