Commit 2c1ccdbd 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>
parent 4054dd1f
......@@ -328,6 +328,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