# HG changeset patch # User Matti Hamalainen # Date 1352158060 -7200 # Node ID 120d6f247f1b9541493ad4951b2c55c5cd0af994 # Parent f145ba458acdf088c73c4b0781389f9c3c8ae29a Cleanups. diff -r f145ba458acd -r 120d6f247f1b src/xs_sidplay2.cc --- a/src/xs_sidplay2.cc Tue Nov 06 01:15:28 2012 +0200 +++ b/src/xs_sidplay2.cc Tue Nov 06 01:27:40 2012 +0200 @@ -426,10 +426,8 @@ */ void xs_sidplay2_close(XSEngineState * state) { - XSSIDPlay2 *engine; - assert(state); + XSSIDPlay2 *engine = (XSSIDPlay2 *) state->internal; - engine = (XSSIDPlay2 *) state->internal; /* Free internals */ if (engine->builder) { @@ -463,7 +461,8 @@ if (!engine) return FALSE; - if (!engine->tune->selectSong(state->currSong)) { + if (!engine->tune->selectSong(state->currSong)) + { xs_error("[SIDPlay2] tune->selectSong() failed\n"); return FALSE; }