Kaydet (Commit) 92632038 authored tarafından Michael Meeks's avatar Michael Meeks Kaydeden (comit) Michael Meeks

fix crash on cleanup of gtk2 path

üst 98cdbff4
......@@ -95,6 +95,7 @@ GtkSalDisplay::GtkSalDisplay( GdkDisplay* pDisplay ) :
#else
m_bUseRandRWrapper = false; // use gdk signal instead
Init ();
hEventGuard_ = NULL;
#endif
gdk_window_add_filter( NULL, call_filterGdkEvent, this );
......@@ -119,7 +120,8 @@ GtkSalDisplay::~GtkSalDisplay()
if( m_aCursors[ i ] )
gdk_cursor_unref( m_aCursors[ i ] );
osl_destroyMutex( hEventGuard_ );
if (hEventGuard_)
osl_destroyMutex( hEventGuard_ );
hEventGuard_ = NULL;
}
......
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