Fix resource leaks
authorPrzemyslaw Ciezkowski <p.ciezkowski@samsung.com>
Tue, 6 Nov 2012 07:40:58 +0000 (08:40 +0100)
committerJihoon Chung <jihoon.chung@samsung.com>
Tue, 13 Nov 2012 04:15:33 +0000 (13:15 +0900)
[Issue#] N/A
[Problem] There are memory leaks in wrt-client.
[Cause] N/A
[Solution] Removed unused pointer. Freed another pointer.
[SCMRequest] N/A

Change-Id: I7b939f4f06842aedeed25b6b14c1b60b441dccb4

src/wrt-client/wrt-client.cpp

index 48e93f1..02def0e 100755 (executable)
@@ -25,7 +25,6 @@
 #include <widget_localize_model.h>
 #include <localization_setting.h>
 #include <widget_deserialize_model.h>
-#include <launch_user_data.h>
 #include <EWebKit2.h>
 #include <dpl/localization/w3c_file_localization.h>
 #include <dpl/localization/LanguageTagsProvider.h>
@@ -231,6 +230,7 @@ void WrtClient::setSdkLauncherDebugData()
             m_debugMode = false;
         }
     }
+    bundle_free(bundleFromSdkLauncher);
 }
 
 bool WrtClient::checkDebugMode(SDKDebugData* debugData)
@@ -544,7 +544,6 @@ void WrtClient::initializeWindowModes()
     }
     LogInfo("initializeWindowModes " << m_debugMode);
 
-    SDKDebugData* debug = new SDKDebugData;
     if(m_debugMode) {
         m_windowData->m_debugMode = TRUE;
     }