[Type] bug fix.
[Module] opengl
[Priority]
[CQ#] T_SDK-127
[Redmine#]
[Problem] emulator crash
[Cause] gl context double free.
[Solution]
[TestCase]
-Version: 1.3.49
+Version: 1.3.50
Maintainer: Yeong-Kyoon Lee<yeongkyoon.lee@samsung.com>
Source: emulator
/* Update the context in surface and free previous light-weight context */
void glo_surface_update_context(GloSurface *surface, GloContext *context)
{
- if ( surface->context )
+ if ( surface->context && (surface->context->context == 0))
qemu_free(surface->context);
surface->context = context;
}
/* Update the context in surface and free previous light-weight context */
void glo_surface_update_context(GloSurface *surface, GloContext *context)
{
- if ( surface->context )
+ if ( surface->context && !surface->context->hDC)
g_free(surface->context);
surface->context = context;
}
/* Update the context in surface and free previous light-weight context */
void glo_surface_update_context(GloSurface *surface, GloContext *context)
{
- if ( surface->context )
+ if ( surface->context && (surface->context->context == 0))
g_free(surface->context);
surface->context = context;
}