$OpenBSD: patch-plugins_gtkui_ddblistview_h,v 1.1 2014/09/23 15:03:39 dcoppa Exp $

commit 05f3d65bb98cb7f7756ea6ff2632f7fcda7c9fbb
Author: Alexey Yakovenko <waker@users.sourceforge.net>
Date:   Fri Sep 12 21:24:16 2014 +0200

gtkui: fix random crash after closing playlist using menu (bug #1193)

--- plugins/gtkui/ddblistview.h.orig	Thu Jul 31 21:16:23 2014
+++ plugins/gtkui/ddblistview.h	Tue Sep 23 16:28:20 2014
@@ -22,6 +22,7 @@
 #include <sys/time.h>
 #include <stdint.h>
 #include "drawing.h"
+#include "../../deadbeef.h"
 
 // drag and drop targets
 enum {
@@ -164,6 +165,7 @@ struct _DdbListview {
     struct _DdbListviewColumn *columns;
     gboolean lock_columns;
 
+    ddb_playlist_t *plt; // current playlist (refcounted), must be unreffed with the group
     struct _DdbListviewGroup *groups;
     int groups_build_idx; // must be the same as playlist modification idx
     int fullheight;
