Sophie

Sophie

distrib > Fedora > 13 > i386 > media > updates-src > by-pkgid > 00d36b384de19c81aefeeffacdec840b > files > 4

FlightGear-Atlas-0.4.8-0.1.cvs20100719.fc13.src.rpm

--- Atlas.orig/src/Atlas.cxx	2010-07-19 10:38:47.000000000 +0200
+++ Atlas/src/Atlas.cxx	2010-07-20 16:50:44.000000000 +0200
@@ -1898,7 +1898,7 @@ void MainUI::setTrackList()
 	free(trackList);
     }
 
-    trackList = (char **)malloc(sizeof(char *) * globals.tracks().size() + 1);
+    trackList = (char **)malloc(sizeof(char *)*(globals.tracks().size() + 1));
     for (unsigned int i = 0; i < globals.tracks().size(); i++) {
 	// The display styles are the same as in the graphs window.
 	trackList[i] = strdup(globals.track(i)->niceName());
@@ -2797,7 +2797,7 @@ void LightingUI::updatePalettes()
     }
 
     const vector<Palette *>& p = palettes->palettes();
-    paletteList = (char **)malloc(sizeof(char *) * p.size() + 1);
+    paletteList = (char **)malloc(sizeof(char *)*(p.size() + 1));
     for (unsigned int i = 0; i < p.size(); i++) {
 	// Display the filename of the palette (but not the path).
 	SGPath full(p[i]->path());
--- Atlas.orig/src/Notifications.cxx	2009-06-15 10:44:58.000000000 +0200
+++ Atlas/src/Notifications.cxx	2010-07-20 23:40:55.103800411 +0200
@@ -80,7 +80,6 @@ Subscriber::Subscriber()
 
 Subscriber::~Subscriber()
 {
-    Notification::unsubscribe(this, Notification::All);
 }
 
 bool Subscriber::subscribe(Notification::type n)