diff --git a/cinelerra-5.1/cinelerra/apluginthread.C b/cinelerra-5.1/cinelerra/apluginthread.C
index bb23c306..fd172f65 100644
--- a/cinelerra-5.1/cinelerra/apluginthread.C
+++ b/cinelerra-5.1/cinelerra/apluginthread.C
@@ -35,7 +35,7 @@ APluginThread::~APluginThread()
 	delete plugin_server;
 }
 
-APluginThread::attach()
+void APluginThread::attach()
 {
 // open the plugin
 	plugin_server->open_plugin();
@@ -44,7 +44,7 @@ APluginThread::attach()
 	plugin_server->start_gui();
 }
 
-APluginThread::detach()
+void APluginThread::detach()
 {
 //printf("APluginThread::detach\n");
 	if(plugin_server)
diff --git a/cinelerra-5.1/cinelerra/ci b/cinelerra-5.1/cinelerra/ci
index bc987833..22858982 120000
--- a/cinelerra-5.1/cinelerra/ci
+++ b/cinelerra-5.1/cinelerra/ci
@@ -1 +1 @@
-../bin/cinelerra
\ No newline at end of file
+../bin/cin
\ No newline at end of file
diff --git a/cinelerra-5.1/cinelerra/cursor.C b/cinelerra-5.1/cinelerra/cursor.C
index b392dda1..87f932bb 100644
--- a/cinelerra-5.1/cinelerra/cursor.C
+++ b/cinelerra-5.1/cinelerra/cursor.C
@@ -51,6 +51,7 @@ return 0;
 int Cursor_::draw(int flash, long selectionstart, long selectionend, long zoom_sample, long viewstart, int vertical)
 {
 return 0;
+#if 0
 	if(canvas->get_h() * canvas->get_w() == 0) return 1;
 	if(zoom_sample == 0) return 1;       // no canvas
 
@@ -93,6 +94,7 @@ return 0;
 		canvas->set_opaque();
 	}
 	if(flash) canvas->flash();
+#endif
 }
 
 int Cursor_::resize(int w, int h)
diff --git a/cinelerra-5.1/cinelerra/indexfile.C b/cinelerra-5.1/cinelerra/indexfile.C
index 977ad1cb..2e1b0c73 100644
--- a/cinelerra-5.1/cinelerra/indexfile.C
+++ b/cinelerra-5.1/cinelerra/indexfile.C
@@ -859,7 +859,8 @@ int IndexFile::read_info(Indexable *test_indexable)
 
 		data = new char[index_state->index_start];
 		temp = fread(data, index_state->index_start - sizeof(int64_t), 1, fd);
-		if(!temp) return 1;
+		if(!temp) { delete [] data;
+		return 1;}
 
 		data[index_state->index_start - sizeof(int64_t)] = 0;
 		FileXML xml;
diff --git a/cinelerra-5.1/cinelerra/indexstate.C b/cinelerra-5.1/cinelerra/indexstate.C
index 803c4f0b..87d907a1 100644
--- a/cinelerra-5.1/cinelerra/indexstate.C
+++ b/cinelerra-5.1/cinelerra/indexstate.C
@@ -304,6 +304,7 @@ int IndexState::read_markers(char *index_dir, char *file_path)
 			if( memcmp(version, MARKER_MAGIC_VERSION, vsz) ) {
 				eprintf(_("IndexState::read_markers marker file version mismatched\n: %s\n"),
 					marker_path);
+				fclose(fp);
 				return 1;
 			}
 			ret = read_marks(fp);
diff --git a/cinelerra-5.1/cinelerra/recordengine.C b/cinelerra-5.1/cinelerra/recordengine.C
index 2fb14891..b13424f8 100644
--- a/cinelerra-5.1/cinelerra/recordengine.C
+++ b/cinelerra-5.1/cinelerra/recordengine.C
@@ -225,7 +225,7 @@ int RecordEngine::open_input_devices(int duplex)
 {
 	int audio_opened = 0;
 	int video_opened = 0;
-	AudioConfig *aconfig /* = mwindow->preferences->aconfig */;
+	AudioConfig *aconfig = mwindow->preferences->aconfig;
 
 // Initialize sharing
 	if(record->do_audio && record->do_video)
