diff FXAnalyse.c @ 40:50544ecfcfc7

Handle application quit just once
author Daniele Nicolodi <daniele.nicolodi@obspm.fr>
date Fri, 05 Oct 2012 12:59:32 +0200
parents 2e1b3148d6e6
children dcc305411dcc
line wrap: on
line diff
--- a/FXAnalyse.c	Fri Oct 05 12:53:39 2012 +0200
+++ b/FXAnalyse.c	Fri Oct 05 12:59:32 2012 +0200
@@ -323,15 +323,11 @@
 	return ;
 }
 
-
-
-
-
 int CVICALLBACK QuitCallback (int panel, int control, int event,
 		void *callbackData, int eventData1, int eventData2)
 {
 	switch (event)
-		{
+	{
 		case EVENT_COMMIT:
 			QuitUserInterface (0);
 			mupRelease(MathParser1);
@@ -340,10 +336,7 @@
 			mupRelease(MathParser4);
 			mupRelease(MathParser5);
 			break;
-		case EVENT_RIGHT_CLICK:
-
-			break;
-		}
+	}
 	return 0;
 }
 
@@ -354,12 +347,6 @@
 	double Step ;
 	
 	switch (event) {
-		case EVENT_CLOSE:
-			QuitUserInterface (0);
-			mupRelease(MathParser1);
-			mupRelease(MathParser2); 
-			mupRelease(MathParser3);
-			break;
 		case EVENT_KEYPRESS:
 			switch (eventData1)	// ie the code of the key which has been stroke 
 				{