mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-24 02:42:50 +00:00
ksplash: fix memory leak, minor code style correction
This commit is contained in:
parent
f511b2d6ba
commit
3a4377f1ca
2 changed files with 3 additions and 3 deletions
|
@ -50,7 +50,7 @@ SplashApp::SplashApp(Display * display, int &argc, char ** argv)
|
|||
if (m_testing) {
|
||||
m_timer.start(TEST_STEP_INTERVAL, this);
|
||||
}
|
||||
|
||||
|
||||
connect(m_desktop, SIGNAL(screenCountChanged(int)), this, SLOT(screenGeometryChanged(int)));
|
||||
connect(m_desktop, SIGNAL(workAreaResized(int)), this, SLOT(screenGeometryChanged(int)));
|
||||
}
|
||||
|
@ -78,11 +78,10 @@ void SplashApp::timerEvent(QTimerEvent * event)
|
|||
|
||||
bool SplashApp::x11EventFilter(XEvent * xe)
|
||||
{
|
||||
char * message;
|
||||
switch (xe->type) {
|
||||
case ClientMessage:
|
||||
if (xe->xclient.message_type == m_kde_splash_progress) {
|
||||
message = xe->xclient.data.b;
|
||||
char * message = xe->xclient.data.b;
|
||||
|
||||
int stage = -1;
|
||||
|
||||
|
|
|
@ -154,4 +154,5 @@ int main( int argc, char* argv[] )
|
|||
for (int i = 1; i < number_of_screens; i++)
|
||||
kill(cpid[i], SIGTERM);
|
||||
}
|
||||
free(cpid);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue