diff options
author | 2010-07-28 11:51:41 +0200 | |
---|---|---|
committer | 2010-07-28 11:51:41 +0200 | |
commit | 4fc8d5ead565c1b4e45eac93fba26ddb3b8566b4 (patch) | |
tree | 0c6eed66f2aca1755f9a218f5ff8967acf1cc8bc /plugins/ao/eng_psf/peops/spu.c | |
parent | 514156edddceaa3fad523c2d46bc9ac1e00b6624 (diff) | |
parent | bfce294151a589c1d91d982d78eba47d16158713 (diff) |
Merge branch 'devel' into actions
Conflicts:
plugins/hotkeys/hotkeys.c
Diffstat (limited to 'plugins/ao/eng_psf/peops/spu.c')
-rw-r--r-- | plugins/ao/eng_psf/peops/spu.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/ao/eng_psf/peops/spu.c b/plugins/ao/eng_psf/peops/spu.c index 75f3c845..bf2845f2 100644 --- a/plugins/ao/eng_psf/peops/spu.c +++ b/plugins/ao/eng_psf/peops/spu.c @@ -593,11 +593,16 @@ int SPUopen(mips_cpu_context *cpu) int SPUclose(mips_cpu_context *cpu) { spu_state_t *spu = cpu->spu; + if (!spu) { + return 0; + } if(!spu->bSPUIsOpen) return 0; // some security spu->bSPUIsOpen=0; // no more open RemoveStreams(spu); // no more streaming + free (spu); + cpu->spu = NULL; return 0; } |