fixup a bunch of memory use issues
[goodguy/history.git] / cinelerra-5.0 / cinelerra / awindowgui.C
index 3e4c383b9f5095abe32d6a829220dc8aa2e772b1..3052201f1cdf36c54628f6bcdd5f8ec087a70883 100644 (file)
@@ -772,7 +772,7 @@ void AWindowRemovePlugin::handle_close_event(int result)
                MWindow *mwindow = awindow->mwindow;
                sprintf(index_path, "%s/%s", mwindow->preferences->plugin_dir, PLUGIN_FILE);
                mwindow->plugindb->remove(plugin);
-               plugin->delete_this();
+               delete plugin;  plugin = 0;
                remove(plugin_path);
                if( png_path[0] ) remove(png_path);
                remove(index_path);