From 3c37f74539cf870d563c44b92fc82852b5c46012 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Thu, 26 Oct 2017 18:45:08 +0000 Subject: fixed memory leaks and other errors git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@7649 90c681e8-e032-0410-971d-27865f9a5e38 --- src/plugins/Output/alsa/settingsdialog.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/plugins/Output/alsa') diff --git a/src/plugins/Output/alsa/settingsdialog.cpp b/src/plugins/Output/alsa/settingsdialog.cpp index d4b008b0c..e60715b3d 100644 --- a/src/plugins/Output/alsa/settingsdialog.cpp +++ b/src/plugins/Output/alsa/settingsdialog.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2006-2016 by Ilya Kotov * + * Copyright (C) 2006-2017 by Ilya Kotov * * forkotov02@ya.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -98,7 +98,7 @@ void SettingsDialog::getSoftDevices() if(snd_device_name_hint(-1, "pcm", &hints) < 0) return; - while(hints[i]) + while(hints && hints[i]) { char *type = snd_device_name_get_hint (hints[i], "IOID"); if (!type || !strcmp (type, "Output")) -- cgit v1.2.3-13-gbd6f