[Aptitude-svn-commit] r3721 - in branches/aptitude-0.3/aptitude: . src

Daniel Burrows dburrows at costa.debian.org
Sat Aug 6 18:35:51 UTC 2005


Author: dburrows
Date: Sat Aug  6 18:35:48 2005
New Revision: 3721

Modified:
   branches/aptitude-0.3/aptitude/ChangeLog
   branches/aptitude-0.3/aptitude/src/ui.cc
Log:
Fix do_null_pointer

Modified: branches/aptitude-0.3/aptitude/ChangeLog
==============================================================================
--- branches/aptitude-0.3/aptitude/ChangeLog	(original)
+++ branches/aptitude-0.3/aptitude/ChangeLog	Sat Aug  6 18:35:48 2005
@@ -1,5 +1,12 @@
 2005-08-06  Daniel Burrows  <dburrows at debian.org>
 
+	* src/ui.cc:
+
+	  Really set the global apt error dialog to NULL when it is
+	  destroyed.  Should fix the problem where the apt error dialog
+	  only appears once...not to mention any weird memory corruption
+	  bugs caused by this.
+
 	* src/pkg_tree.cc:
 
 	  Fix the invocation of parse_pattern so it doesn't flag errors

Modified: branches/aptitude-0.3/aptitude/src/ui.cc
==============================================================================
--- branches/aptitude-0.3/aptitude/src/ui.cc	(original)
+++ branches/aptitude-0.3/aptitude/src/ui.cc	Sat Aug  6 18:35:48 2005
@@ -218,7 +218,7 @@
 // blah, I hate C++
 static void do_null_ptr(vs_text_layout **p)
 {
-  p=NULL;
+  *p=NULL;
 }
 
 void check_apt_errors()



More information about the Aptitude-svn-commit mailing list