diff options
author | Julien Isorce <julien.isorce@gmail.com> | 2014-04-12 15:51:47 +0100 |
---|---|---|
committer | Julien Isorce <julien.isorce@gmail.com> | 2014-04-12 15:51:47 +0100 |
commit | 871ddef9ce30fffde7e7048dace8be7d9cd53091 (patch) | |
tree | 0ef234a2882bb25dbbcb84bdff3b072f93bc327e | |
parent | 3c49f0f42a6e1ec38398faa096a0caceeec7875a (diff) |
gl/cocoa: fix NSAutoreleasePool initialization
-rw-r--r-- | gst-libs/gst/gl/cocoa/gstglcontext_cocoa.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gst-libs/gst/gl/cocoa/gstglcontext_cocoa.m b/gst-libs/gst/gl/cocoa/gstglcontext_cocoa.m index 40e0dac68..023b64147 100644 --- a/gst-libs/gst/gl/cocoa/gstglcontext_cocoa.m +++ b/gst-libs/gst/gl/cocoa/gstglcontext_cocoa.m @@ -51,7 +51,7 @@ gst_gl_window_cocoa_init_nsapp (gpointer data) g_mutex_lock (&nsapp_lock); - [[NSAutoreleasePool alloc] init]; + pool = [[NSAutoreleasePool alloc] init]; /* The sharedApplication class method initializes * the display environment and connects your program @@ -122,7 +122,7 @@ gst_gl_context_cocoa_class_init (GstGLContextCocoaClass * klass) GST_DEBUG_FUNCPTR (gst_gl_context_cocoa_get_gl_platform); #ifndef GNUSTEP - [[NSAutoreleasePool alloc] init]; + pool = [[NSAutoreleasePool alloc] init]; /* [NSApplication sharedApplication] will usually be * called in your application so it's not necessary |