Mercurial > audlegacy-plugins
view src/vtx/about.c @ 3053:a3734dd60d7a
Change the flow of codec probing to avoid the possibility of a null pointer dereference. From code analysis, unique IDs mPqomY & 8B8oHC.
author | Tony Vroon <chainsaw@gentoo.org> |
---|---|
date | Sat, 18 Apr 2009 21:28:56 +0100 |
parents | 3134a0987162 |
children |
line wrap: on
line source
#include <audlegacy/plugin.h> #include <audlegacy/output.h> #include <audlegacy/i18n.h> #include <gtk/gtk.h> #include "vtx.h" #include "ayemu.h" void vtx_about (void) { static GtkWidget *box; if (box) { gtk_window_present(GTK_WINDOW(box)); } else { box = audacious_info_dialog (_("About Vortex Player"), _ ("Vortex file format player by Sashnov Alexander <sashnov@ngs.ru>\n" "Founded on original source in_vtx.dll by Roman Sherbakov <v_soft@microfor.ru>\n" "\n" "Music in vtx format can be found at http://vtx.microfor.ru/music.htm\n" "and other AY/YM music sites.\n" "\n" "Audacious implementation by Pavel Vymetalek <pvymetalek@seznam.cz>"), _("Ok"), FALSE, NULL, NULL); g_signal_connect (G_OBJECT (box), "destroy", G_CALLBACK(gtk_widget_destroyed), &box); } }