changeset 6023:1e0847e8c1bf

Fix for RT-35016: [Lens, DirectFB] VM crashed with SIGSEGV
author Elina Kleyman <elina.kleyman@oracle.com>
date Tue, 24 Dec 2013 12:54:00 +0200
parents f0073aabe344
children 33bb9130bbce
files modules/graphics/src/main/native-glass/lens/wm/screen/dfbScreen.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/modules/graphics/src/main/native-glass/lens/wm/screen/dfbScreen.c	Mon Dec 23 14:27:58 2013 -0800
+++ b/modules/graphics/src/main/native-glass/lens/wm/screen/dfbScreen.c	Tue Dec 24 12:54:00 2013 +0200
@@ -132,11 +132,13 @@
         GLASS_LOG_FINER("IDirectFBDisplayLayer->Release(primaryLayer =%p)",
                         primaryLayer);
         primaryLayer->Release(primaryLayer);
+	primaryLayer = NULL;
     }
     if (dfb != NULL) {
         GLASS_LOG_FINE("Releasing DFB interface");
         GLASS_LOG_FINER("IDirectFB->Release(dfb=%p)", dfb);
         dfb->Release(dfb);
+	dfb = NULL;
     }
 
     DEBUG_FUNC_EXIT();