Revision: 201001 default PDK_3.0.f PDK_3.0.g
authorDremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 26 Jan 2010 12:01:21 +0200
changeset 4 6dc066157ed4
parent 3 b1602a5ab0a3
child 8 07d1685f0cd4
Revision: 201001 Kit: 201004
vtengines/videoteleng/Logger/Src/CVtLogger.cpp
vtuis/videotelui/src/CVtUiAppUi.cpp
--- a/vtengines/videoteleng/Logger/Src/CVtLogger.cpp	Mon Jan 18 20:21:33 2010 +0200
+++ b/vtengines/videoteleng/Logger/Src/CVtLogger.cpp	Tue Jan 26 12:01:21 2010 +0200
@@ -292,11 +292,14 @@
     if ( tls )
         {
         CVtLogger* logger = CVtLogger::Logger();
-        TInt count( --(logger->iAccessCount) );
-        if ( !count )
+        if( logger )
             {
-            delete reinterpret_cast<CVtLogger*>( tls );
-            Dll::SetTls( NULL );
+            TInt count( --(logger->iAccessCount) );
+            if ( !count )
+                {
+                delete reinterpret_cast<CVtLogger*>( tls );
+                Dll::SetTls( NULL );
+                }
             }
         }
 
--- a/vtuis/videotelui/src/CVtUiAppUi.cpp	Mon Jan 18 20:21:33 2010 +0200
+++ b/vtuis/videotelui/src/CVtUiAppUi.cpp	Tue Jan 26 12:01:21 2010 +0200
@@ -2580,12 +2580,12 @@
     CVtUiColorTone* ct = static_cast< CVtUiColorTone* >(
             iFeatureManager->GetFeatureById( EVtUiFeatureIdColourTone ) );
     
-    if ( wb->State() == MVtUiFeature::EActive )
+    if ( wb && wb->State() == MVtUiFeature::EActive )
         {
         __VTPRINT( DEBUG_GEN, "CVtUiWhiteBalance::DoDeactivateL" );
         wb->DoDeactivateL ();
         }
-    if ( ct->State() == MVtUiFeature::EActive )
+    if ( ct && ct->State() == MVtUiFeature::EActive )
         {
         __VTPRINT( DEBUG_GEN, "CVtUiColorTone::DoDeactivateL" );
         ct->DoDeactivateL( );            
@@ -4818,9 +4818,9 @@
             }
         if( currentCamId == MVtEngMedia::ESecondaryCamera )
             {
-            if( wb->IsPendingCmd() )
+            if( wb && wb->IsPendingCmd() )
                 wb->HandlePendingCmdL();
-            if( ct->IsPendingCmd() )
+            if( ct && ct->IsPendingCmd() )
                 ct->HandlePendingCmdL();
             }
         }