Commit 89c901ff authored by Cyril Mathé's avatar Cyril Mathé Committed by Jean-Paul Saman

Mozilla-plugin: Fix a crash when exiting

Signed-off-by: Jean-Paul Saman's avatarJean-Paul Saman <jean-paul.saman@m2x.nl>
(cherry picked from commit 2c1ccdbdd8070a7f0881619be181b9a2906a7dd8)
parent 3f949d67
......@@ -341,6 +341,16 @@ NPError NPP_Destroy( NPP instance, NPSavedData** save )
}
#endif
libvlc_exception_t ex;
libvlc_exception_init(&ex);
int val = p_plugin->playlist_isplaying(&ex);
libvlc_exception_clear(&ex);
if(val)
{
p_plugin->playlist_stop(&ex);
libvlc_exception_clear(&ex);
}
delete p_plugin;
return NPERR_NO_ERROR;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment