Mercurial > audlegacy
comparison libaudacious/beepctrl.c @ 1447:7ca5bef8d9ee trunk
[svn] - fix invalid frees
author | nenolod |
---|---|
date | Fri, 28 Jul 2006 02:27:19 -0700 |
parents | c04ce16b2b57 |
children | 3b1c464cbbb0 |
comparison
equal
deleted
inserted
replaced
1446:7610ab1233a7 | 1447:7ca5bef8d9ee |
---|---|
372 sscanf(workbuf, "%s:%d", hostbuf, &iport); | 372 sscanf(workbuf, "%s:%d", hostbuf, &iport); |
373 | 373 |
374 *port = iport + session; | 374 *port = iport + session; |
375 } | 375 } |
376 | 376 |
377 g_free(in); | 377 g_free(tmp); |
378 } | 378 } |
379 | 379 |
380 /* unix://localhost/tmp/audacious_nenolod.0 */ | 380 /* unix://localhost/tmp/audacious_nenolod.0 */ |
381 void | 381 void |
382 audacious_decode_unix_uri(gint session, gchar *in, gchar **key) | 382 audacious_decode_unix_uri(gint session, gchar *in, gchar **key) |
391 keybuf = strchr(tmp, '/'); | 391 keybuf = strchr(tmp, '/'); |
392 *keybuf++ = '\0'; | 392 *keybuf++ = '\0'; |
393 | 393 |
394 *key = g_strdup(keybuf); | 394 *key = g_strdup(keybuf); |
395 | 395 |
396 g_free(in); | 396 g_free(tmp); |
397 } | 397 } |
398 | 398 |
399 gint | 399 gint |
400 xmms_connect_to_session(gint session) | 400 xmms_connect_to_session(gint session) |
401 { | 401 { |