From 6db480f7722cd4f5f3c6019a2cf3cfda157e0ce3 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Thu, 4 Jun 2015 19:23:47 +0000 Subject: modplug plugin: fixed settings updating issue git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@5089 90c681e8-e032-0410-971d-27865f9a5e38 --- src/plugins/Input/modplug/decoder_modplug.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/plugins/Input/modplug/decoder_modplug.cpp') diff --git a/src/plugins/Input/modplug/decoder_modplug.cpp b/src/plugins/Input/modplug/decoder_modplug.cpp index 17de36429..56891fdcd 100644 --- a/src/plugins/Input/modplug/decoder_modplug.cpp +++ b/src/plugins/Input/modplug/decoder_modplug.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2008-2012 by Ilya Kotov * + * Copyright (C) 2008-2015 by Ilya Kotov * * forkotov02@hotmail.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -56,7 +56,8 @@ DecoderModPlug::DecoderModPlug(const QString &path) : Decoder(0) DecoderModPlug::~DecoderModPlug() { deinit(); - m_instance = 0; + if(m_instance == this) + m_instance = 0; } bool DecoderModPlug::initialize() -- cgit v1.2.3-13-gbd6f