[726/906] window: don't call a NULL destroy function
This commit is contained in:
parent
3c2810c3d6
commit
ac1a2297f5
@ -772,6 +772,7 @@ gst_gl_window_cocoa_get_gl_api (GstGLWindow * window)
|
|||||||
NSAutoreleasePool *pool;
|
NSAutoreleasePool *pool;
|
||||||
|
|
||||||
m_cocoa->priv->running = FALSE;
|
m_cocoa->priv->running = FALSE;
|
||||||
|
if (m_callback)
|
||||||
m_callback (m_data);
|
m_callback (m_data);
|
||||||
|
|
||||||
#ifdef GNUSTEP
|
#ifdef GNUSTEP
|
||||||
|
@ -525,6 +525,7 @@ window_proc (HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
|||||||
|
|
||||||
GST_DEBUG ("WM_GST_GL_WINDOW_QUIT\n");
|
GST_DEBUG ("WM_GST_GL_WINDOW_QUIT\n");
|
||||||
|
|
||||||
|
if (destroy_cb)
|
||||||
destroy_cb ((gpointer) wParam);
|
destroy_cb ((gpointer) wParam);
|
||||||
|
|
||||||
parent_id = GetProp (hWnd, "gl_window_parent_id");
|
parent_id = GetProp (hWnd, "gl_window_parent_id");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user