[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[myserver-commit] [2939] Fixed segmentation fault on myserver stop
From: |
Daniele Perrone |
Subject: |
[myserver-commit] [2939] Fixed segmentation fault on myserver stop |
Date: |
Thu, 06 Nov 2008 21:02:18 +0000 |
Revision: 2939
http://svn.sv.gnu.org/viewvc/?view=rev&root=myserver&revision=2939
Author: dperrone
Date: 2008-11-06 21:02:18 +0000 (Thu, 06 Nov 2008)
Log Message:
-----------
Fixed segmentation fault on myserver stop
Modified Paths:
--------------
trunk/myserver/src/plugin/plugin_info.cpp
Modified: trunk/myserver/src/plugin/plugin_info.cpp
===================================================================
--- trunk/myserver/src/plugin/plugin_info.cpp 2008-11-06 20:44:14 UTC (rev
2938)
+++ trunk/myserver/src/plugin/plugin_info.cpp 2008-11-06 21:02:18 UTC (rev
2939)
@@ -165,10 +165,9 @@
*/
void PluginInfo::detachPlugin()
{
- if (this->plugin!=NULL)
+ if (!this->plugin)
{
- delete(this->plugin);
- this->plugin = NULL;
+ delete this->plugin;
}
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [myserver-commit] [2939] Fixed segmentation fault on myserver stop,
Daniele Perrone <=