<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to 7: It's better gdk_gl_context_finalize() destroys gl_context.</title><link href="https://sourceforge.net/p/gtkglext/patches/7/" rel="alternate"/><link href="https://sourceforge.net/p/gtkglext/patches/7/feed.atom" rel="self"/><id>https://sourceforge.net/p/gtkglext/patches/7/</id><updated>2006-05-28T02:56:44Z</updated><subtitle>Recent changes to 7: It's better gdk_gl_context_finalize() destroys gl_context.</subtitle><entry><title>It's better gdk_gl_context_finalize() destroys gl_context.</title><link href="https://sourceforge.net/p/gtkglext/patches/7/" rel="alternate"/><published>2006-05-28T02:56:44Z</published><updated>2006-05-28T02:56:44Z</updated><author><name>Kouhei Sutou</name><uri>https://sourceforge.net/u/ktou/</uri></author><id>https://sourceforge.neta3e57a13577c36cc5c198bb289a0dc5e9dd7498f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;We may cause memory leak if we only call&lt;br /&gt;
g_object_unref(gl_context) because&lt;br /&gt;
gdk_gl_context_finalize() doesn't call&lt;br /&gt;
_gdk_gl_context_destroy(). We can avoid the memory leak&lt;br /&gt;
by calling gdk_gl_context_destroy() instead of&lt;br /&gt;
g_object_unref() but this workaround has some problems.&lt;br /&gt;
* This isn't GLib-ish.&lt;br /&gt;
* We can't always call gdk_gl_context_destroy() for&lt;br /&gt;
doing unref gl_context. Someone may need gl_context.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>