mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 10:41:04 +00:00
[726/906] window: don't call a NULL destroy function
This commit is contained in:
parent
f9d46c29ca
commit
908cc1989b
2 changed files with 5 additions and 3 deletions
|
@ -772,8 +772,9 @@ gst_gl_window_cocoa_get_gl_api (GstGLWindow * window)
|
|||
NSAutoreleasePool *pool;
|
||||
|
||||
m_cocoa->priv->running = FALSE;
|
||||
m_callback (m_data);
|
||||
|
||||
if (m_callback)
|
||||
m_callback (m_data);
|
||||
|
||||
#ifdef GNUSTEP
|
||||
pool = [[NSAutoreleasePool alloc] init];
|
||||
if ([NSApp isRunning])
|
||||
|
|
|
@ -525,7 +525,8 @@ window_proc (HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
|||
|
||||
GST_DEBUG ("WM_GST_GL_WINDOW_QUIT\n");
|
||||
|
||||
destroy_cb ((gpointer) wParam);
|
||||
if (destroy_cb)
|
||||
destroy_cb ((gpointer) wParam);
|
||||
|
||||
parent_id = GetProp (hWnd, "gl_window_parent_id");
|
||||
if (parent_id) {
|
||||
|
|
Loading…
Reference in a new issue